From 5a64b0a5276742220c9a2ff68a01812ee5aff777 Mon Sep 17 00:00:00 2001 From: eaudetcobello Date: Wed, 22 May 2024 17:58:32 -0400 Subject: [PATCH] Move to sh file --- .github/workflows/sync-registry.yaml | 6 +++--- build-scripts/hack/sync-registry.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100755 build-scripts/hack/sync-registry.sh diff --git a/.github/workflows/sync-registry.yaml b/.github/workflows/sync-registry.yaml index 503ac07a5..3247bc593 100644 --- a/.github/workflows/sync-registry.yaml +++ b/.github/workflows/sync-registry.yaml @@ -13,11 +13,11 @@ jobs: with: go-version: '>=1.22' - - run: go install github.com/regclient/regclient/cmd/regsync@latest - - 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 + go install github.com/regclient/regclient/cmd/regsync@latest + 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