diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 19a8dfa2eb..57ad99fa6b 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 @@ -9,11 +12,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Skopeo YAML source + run: | + cat < $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 }}