Skip to content

Commit

Permalink
Only sync certain images
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed May 1, 2024
1 parent 1bfac90 commit 70b5ff2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on:
push:
branches:
- "eaudetcobello/KU-617"
schedule:
- cron: "0 0 * * *" # Runs every midnight

Expand All @@ -11,9 +14,14 @@ jobs:

- name: Skopeo
run: |
cat <<EOF > $HOME/registry.k8s.io-config.yaml
registry.k8s.io:
images-by-semver:
pause: ">= 3.0"
EOF
docker run quay.io/skopeo/stable:v1.15 sync \
--src docker \
--src yaml \
--dest docker \
--all registry.k8s.io/pause ghcr.io/canonical \
$HOME/registry.k8s.io-config.yaml ghcr.io/canonical \
--format oci \
--dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

0 comments on commit 70b5ff2

Please sign in to comment.