From 1bfac908d47fdd7881f03e6afbc607734704857a Mon Sep 17 00:00:00 2001 From: eaudetcobello Date: Wed, 1 May 2024 09:45:15 -0400 Subject: [PATCH] Pull pause image from k8s.io, tag and push to ghcr.io/canonical --- .github/workflows/images.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/images.yaml diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml new file mode 100644 index 000000000..19a8dfa2e --- /dev/null +++ b/.github/workflows/images.yaml @@ -0,0 +1,19 @@ +on: + schedule: + - cron: "0 0 * * *" # Runs every midnight + +jobs: + publish: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Skopeo + run: | + docker run quay.io/skopeo/stable:v1.15 sync \ + --src docker \ + --dest docker \ + --all registry.k8s.io/pause ghcr.io/canonical \ + --format oci \ + --dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}