Skip to content

Commit 22fc0e8

Browse files
committed
push the image
1 parent d75d783 commit 22fc0e8

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/build_multi_arch_image.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,27 @@ jobs:
4545
name: eps-devcontainer-base-latest-${{ matrix.arch }}.img
4646
path: |
4747
eps-devcontainer-base-latest-${{ matrix.arch }}.img
48+
49+
publish_image:
50+
needs: build_image
51+
runs-on: ubuntu-22.04
52+
permissions:
53+
contents: read
54+
packages: write
55+
attestations: write
56+
id-token: write
57+
steps:
58+
- name: Download amd64 images
59+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
60+
with:
61+
name: eps-devcontainer-base-latest-amd64.img
62+
- name: Download arm64 images
63+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
64+
with:
65+
name: eps-devcontainer-base-latest-arm64.img
66+
- name: Load and push multi-arch image
67+
run: |
68+
docker load -i eps-devcontainer-base-latest-amd64.img
69+
docker load -i eps-devcontainer-base-latest-arm64.img
70+
docker manifest create ghcr.io/nhsdigital/eps-devcontainer-base:latest ghcr.io/nhsdigital/eps-devcontainer-base:latest-amd64 ghcr.io/nhsdigital/eps-devcontainer-base:latest-arm64
71+
docker manifest push ghcr.io/nhsdigital/eps-devcontainer-base:latest

0 commit comments

Comments
 (0)