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 69ab3a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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:
registry.k8s.io:
images-by-semver:
pause: "= 3.7"
8 changes: 6 additions & 2 deletions .github/workflows/sync-registry.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
schedule:
- cron: "0 0 * * *" # Runs every midnight
push:
branches:
- "eaudetcobello/KU-617"

jobs:
publish:
Expand All @@ -11,6 +14,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 69ab3a3

Please sign in to comment.