Pull pause image from k8s.io, tag and push to ghcr.io/canonical #4
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 --platform linux/amd64 registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-amd64:3.7 | |
docker pull --platform linux/arm/v7 registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-armv7:3.7 | |
docker pull --platform linux/arm64 registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-arm64:3.7 | |
docker pull --platform linux/ppc64le registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-ppc64le:3.7 | |
docker pull --platform linux/s390x registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-s390x:3.7 | |
docker pull --platform windows/amd64,os.version=10.0.17763.2686 registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-win10-17763:3.7 | |
docker pull --platform windows/amd64,os.version=10.0.19042.1586 registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-win10-19042:3.7 | |
docker pull --platform windows/amd64,os.version=10.0.20348.587 registry.k8s.io/pause:3.7 | |
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause-win10-20348:3.7 | |
- name: Create and push Docker manifest | |
run: | | |
docker manifest create ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-amd64:3.7 ghcr.io/canonical/pause-armv7:3.7 ghcr.io/canonical/pause-arm64:3.7 ghcr.io/canonical/pause-ppc64le:3.7 ghcr.io/canonical/pause-s390x:3.7 ghcr.io/canonical/pause-win10-17763:3.7 ghcr.io/canonical/pause-win10-19042:3.7 ghcr.io/canonical/pause-win10-20348:3.7 | |
docker manifest annotate --arch amd64 ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-amd64:3.7 | |
docker manifest annotate --arch arm --variant v7 ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-armv7:3.7 | |
docker manifest annotate --arch arm64 ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-arm64:3.7 | |
docker manifest annotate --arch ppc64le ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-ppc64le:3.7 | |
docker manifest annotate --arch s390x ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-s390x:3.7 | |
docker manifest annotate --arch amd64 --os windows --os-version 10.0.17763.2686 ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-win10-17763:3.7 | |
docker manifest annotate --arch amd64 --os windows --os-version 10.0.19042.1586 ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-win10-19042:3.7 | |
docker manifest annotate --arch amd64 --os windows --os-version 10.0.20348.587 ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause-win10-20348:3.7 | |
docker push ghcr.io/canonical/pause:3.7 |