diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index c915a98..206c676 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -1,5 +1,8 @@ name: Sync repo to Gitlab -on: [ push, delete, workflow_dispatch ] +on: + workflow_dispatch: + schedule: + - cron: '15 20 * * *' jobs: sync: @@ -7,11 +10,9 @@ jobs: 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 }} \ No newline at end of file + ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72a3082..379abb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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