Pull pause image from k8s.io, tag and push to ghcr.io/canonical #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Pull and tag images for each architecture | |
run: | | |
docker pull registry.k8s.io/pause:3.7 --arch amd64 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/registry/pause:3.7-amd64 | |
- name: Create and push Docker manifest | |
run: | | |
docker manifest create ghcr.io/registry/pause:3.7 \ | |
ghcr.io/registry/pause:3.7-amd64 | |
docker manifest annotate ghcr.io/registry/pause:3.7 ghcr.io/registry/pause:3.7-amd64 --os linux --arch amd64 | |
docker push ghcr.io/registry/pause:3.7-amd64 | |
docker push ghcr.io/registry/pause:3.7 |