Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed May 18, 2024
1 parent af9b48e commit 8cf3580
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/data/sync-registry-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
k8s.gcr.io/sig-storage:
images-by-semver:
pause: "= 3.7"
pause: "= 3.7"
12 changes: 0 additions & 12 deletions .github/scripts/sync-registry.sh

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/sync-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ jobs:
env:
ACTOR: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIR: ${GITHUB_WORKSPACE}
run: |
./${GITHUB_WORKSPACE}/.github/scripts/sync-registry.sh
./${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.sh
9 changes: 9 additions & 0 deletions build-scripts/hack/sync-registry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
DIR=$(realpath $(dirname "${0}"))

docker run -v "${DIR}/registry-k8s-io.yaml":/config.yaml quay.io/skopeo/stable:v1.15 sync \
--src yaml \
--dest docker \
/config.yaml ghcr.io/canonical \
--format oci \
--dest-creds "${ACTOR}":"${TOKEN}"

0 comments on commit 8cf3580

Please sign in to comment.