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 6f20e01
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 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 @@ -9,11 +12,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

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

0 comments on commit 6f20e01

Please sign in to comment.