-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (36 loc) · 1.54 KB
/
images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause: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:3.7-arm64
docker pull --platform linux/amd64 registry.k8s.io/pause:3.7
docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause:3.7-amd64
- name: Create and push Docker manifest
run: |
docker manifest create ghcr.io/canonical/pause:3.7 \
ghcr.io/canonical/pause:3.7-amd64 \
ghcr.io/canonical/pause:3.7-arm64
docker manifest annotate ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause:3.7-amd64 --os linux --arch amd64
docker manifest annotate ghcr.io/canonical/pause:3.7 ghcr.io/canonical/pause:3.7-arm64 --os linux --arch arm64
docker push ghcr.io/canonical/pause:3.7
docker push ghcr.io/canonical/pause:3.7-amd64
docker push ghcr.io/canonical/pause:3.7-arm64