diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml new file mode 100644 index 0000000000..8c06263ab6 --- /dev/null +++ b/.github/workflows/images.yaml @@ -0,0 +1,28 @@ +on: + push: + branches: + - "eaudetcobello/KU-617" + schedule: + - cron: '0 0 * * *' # Runs every midnight + +jobs: + publish: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Install Skopeo + run: | + sudo apt update && sudo apt install -y skopeo + + - name: Skopeo + run: | + skopeo copy --multi-arch all docker://registry.k8s.io/pause:latest docker://ghcr.io/canonical/pause:latest \ No newline at end of file