Skip to content

Commit 5d0868a

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

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ 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
3838
- localstack wait -t 30
39-
- (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true
39+
- (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod) || true
4040
cache:
4141
paths:
4242
- $CI_PROJECT_DIR/.cache/pip
@@ -58,7 +58,7 @@ deploy:
5858
script:
5959
- ./bin/build_lambdas.sh
6060
- ./deployment/awslocal/deploy.sh
61-
- localstack state export ./ls-state-pod.zip
61+
- localstack state export ls-state-pod
6262

6363
test:
6464
stage: test

ls-state-pod.zip

3.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)