Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed May 21, 2024
1 parent a10bf31 commit 70d3f47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/data/sync-registry-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
k8s.gcr.io/sig-storage:
registry.k8s.io:
images-by-semver:
pause: "= 3.7"
nginx: "= 1.25.5-slim"
5 changes: 3 additions & 2 deletions .github/workflows/sync-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ 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
chmod +x ${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.sh
${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.sh
4 changes: 1 addition & 3 deletions build-scripts/hack/sync-registry.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 70d3f47

Please sign in to comment.