From d562177edddbb5646f9fd180f83607071decffdb Mon Sep 17 00:00:00 2001 From: eaudetcobello Date: Tue, 21 May 2024 16:27:39 -0400 Subject: [PATCH] Review comments --- .github/data/sync-registry-config.yaml | 2 +- .github/workflows/sync-registry.yaml | 5 ++++- build-scripts/hack/sync-registry.sh | 4 +--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/data/sync-registry-config.yaml b/.github/data/sync-registry-config.yaml index 59da9d31e..b2948eb9f 100644 --- a/.github/data/sync-registry-config.yaml +++ b/.github/data/sync-registry-config.yaml @@ -1,3 +1,3 @@ -k8s.gcr.io/sig-storage: +registry.k8s.io: images-by-semver: pause: "= 3.7" diff --git a/.github/workflows/sync-registry.yaml b/.github/workflows/sync-registry.yaml index 4aea8fe29..9bda78127 100644 --- a/.github/workflows/sync-registry.yaml +++ b/.github/workflows/sync-registry.yaml @@ -1,6 +1,9 @@ on: schedule: - cron: "0 0 * * *" # Runs every midnight + push: + branches: + - "eaudetcobello/KU-617" jobs: publish: @@ -11,6 +14,6 @@ jobs: - name: Sync registry.k8s.io to ghcr.io/canonical env: - DEST_CREDS: ${{ github.actor }}:${{ services.GITHUB_TOKEN }} + DEST_CREDS: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} run: | ./${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 b059ab1d7..834cdaa4d 100644 --- a/build-scripts/hack/sync-registry.sh +++ b/build-scripts/hack/sync-registry.sh @@ -1,8 +1,6 @@ #!/bin/bash -DIR=$(realpath $(dirname "${0}")) - -docker run -v "${DIR}/registry-k8s-io.yaml":/config.yaml quay.io/skopeo/stable:v1.15 sync \ +docker run -v "${GITHUB_WORKSPACE}/.github/data/sync-registry-config.yaml":/config.yaml quay.io/skopeo/stable:v1.15 sync \ --src yaml \ --dest docker \ /config.yaml ghcr.io/canonical \