Skip to content

fix the gitlab mirror sync workflow #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Sync repo to Gitlab
on: [ push, delete, workflow_dispatch ]
on:
workflow_dispatch:
schedule:
- cron: '15 20 * * *'

jobs:
sync:
name: Gitlab Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4.2.2
- name: Mirroring Repository
uses: pixta-dev/repository-mirroring-action@v1.1.1
uses: fscarmen/repository-mirroring-action@v1.0.0
with:
target_repo_url: git@gitlab.com:localstack.cloud/samples/sample-serverless-image-resizer-s3-lambda.git
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ default:
- mkdir -p $PIP_CACHE_DIR
- python3 -m pip install localstack awscli awscli-local
- docker pull localstack/localstack-pro:latest
# Gitlab has changed to ipv6, but LocalStack not supporting it
# Gitlab has changed to ipv6, but LocalStack does not support it
- dind_ip="$(getent ahostsv4 docker | cut -d' ' -f1 | head -n1)"
- echo -e "${dind_ip}\tlocalhost.localstack.cloud\n" >> /etc/hosts
- localstack start -d
Expand Down
Loading