diff --git a/.github/workflows/sync-registry.yaml b/.github/workflows/sync-registry.yaml index 8b96d3876..4aea8fe29 100644 --- a/.github/workflows/sync-registry.yaml +++ b/.github/workflows/sync-registry.yaml @@ -11,7 +11,6 @@ jobs: - name: Sync registry.k8s.io to ghcr.io/canonical env: - ACTOR: ${{ github.actor }} - TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEST_CREDS: ${{ github.actor }}:${{ services.GITHUB_TOKEN }} run: | - ./${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.sh \ No newline at end of file + ./${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.sh diff --git a/build-scripts/hack/sync-registry.sh b/build-scripts/hack/sync-registry.sh index f63953614..b059ab1d7 100644 --- a/build-scripts/hack/sync-registry.sh +++ b/build-scripts/hack/sync-registry.sh @@ -1,4 +1,5 @@ #!/bin/bash + DIR=$(realpath $(dirname "${0}")) docker run -v "${DIR}/registry-k8s-io.yaml":/config.yaml quay.io/skopeo/stable:v1.15 sync \