Skip to content

Commit a068d1c

Browse files
committed
chore: verify base image pushed properly
1 parent 322f612 commit a068d1c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/docker-base.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,16 @@ jobs:
5959
push: true
6060
tags: |
6161
ghcr.io/coder/coder-base:latest
62+
63+
- name: Verify that images are pushed properly
64+
run: |
65+
manifests=$(
66+
docker manifest inspect ghcr.io/coder/coder-base:latest | \
67+
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
68+
)
69+
70+
# Verify all 3 platforms are present.
71+
set -euxo pipefail
72+
echo "$manifests" | grep -q linux/amd64
73+
echo "$manifests" | grep -q linux/arm64
74+
echo "$manifests" | grep -q linux/arm/v7

.github/workflows/release.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,19 @@ jobs:
195195
tags: |
196196
${{ steps.image-base-tag.outputs.tag }}
197197
198+
- name: Verify that base images are pushed properly
199+
run: |
200+
manifests=$(
201+
docker manifest inspect "${{ steps.image-base-tag.outputs.tag }}" | \
202+
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
203+
)
204+
205+
# Verify all 3 platforms are present.
206+
set -euxo pipefail
207+
echo "$manifests" | grep -q linux/amd64
208+
echo "$manifests" | grep -q linux/arm64
209+
echo "$manifests" | grep -q linux/arm/v7
210+
198211
- name: Build Linux Docker images
199212
run: |
200213
set -euxo pipefail

0 commit comments

Comments
 (0)