Skip to content

Commit 4eb44de

Browse files
committed
fix the gitlab mirror sync workflow (#42)
1 parent 00ee33f commit 4eb44de

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/sync.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: Sync repo to Gitlab
2-
on: [ push, delete, workflow_dispatch ]
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '15 20 * * *'
36

47
jobs:
58
sync:
69
name: Gitlab Sync
710
runs-on: ubuntu-latest
811
steps:
912
- name: Checkout
10-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4.2.2
1114
with:
1215
fetch-depth: 0
1316
- name: Mirroring Repository
14-
uses: pixta-dev/repository-mirroring-action@v1.1.1
17+
uses: fscarmen/repository-mirroring-action@v1.0.0
1518
with:
1619
target_repo_url: git@gitlab.com:localstack.cloud/samples/sample-serverless-image-resizer-s3-lambda.git
17-
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
20+
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ default:
3131
- mkdir -p $PIP_CACHE_DIR
3232
- python3 -m pip install localstack awscli awscli-local
3333
- docker pull localstack/localstack-pro:latest
34-
# Gitlab has changed to ipv6, but LocalStack not supporting it
34+
# Gitlab has changed to ipv6, but LocalStack does not support it
3535
- dind_ip="$(getent ahostsv4 docker | cut -d' ' -f1 | head -n1)"
3636
- echo -e "${dind_ip}\tlocalhost.localstack.cloud\n" >> /etc/hosts
3737
- localstack start -d

0 commit comments

Comments
 (0)