From 70b5ff25d71b8cab13bec06d739fcc31fd598ad8 Mon Sep 17 00:00:00 2001 From: eaudetcobello Date: Wed, 1 May 2024 17:47:47 -0400 Subject: [PATCH] Only sync certain images --- .github/workflows/images.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 19a8dfa2e..285270eae 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -1,4 +1,7 @@ on: + push: + branches: + - "eaudetcobello/KU-617" schedule: - cron: "0 0 * * *" # Runs every midnight @@ -11,9 +14,14 @@ jobs: - name: Skopeo run: | + cat < $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 }}