diff --git a/.github/workflows/sync-registry.yaml b/.github/workflows/sync-registry.yaml index 503ac07a5..17feaf551 100644 --- a/.github/workflows/sync-registry.yaml +++ b/.github/workflows/sync-registry.yaml @@ -15,9 +15,12 @@ jobs: - run: go install github.com/regclient/regclient/cmd/regsync@latest + - run: echo "$GOPATH/bin" >> $GITHUB_PATH + - name: Sync registry.k8s.io to ghcr.io/canonical env: USERNAME: ${{ github.actor }} TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - regsync once --config ${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.yaml + cp ${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.yaml . + regsync once --config ./sync-registry.yaml diff --git a/build-scripts/hack/sync-registry.sh b/build-scripts/hack/sync-registry.sh new file mode 100755 index 000000000..38ab5504b --- /dev/null +++ b/build-scripts/hack/sync-registry.sh @@ -0,0 +1 @@ +regsync once --config ./sync-registry.yaml