Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: verify base image pushed properly
  • Loading branch information
deansheather committed Mar 1, 2023
commit a068d1c758f918c4f5b35152e74274aa3ac2272f
13 changes: 13 additions & 0 deletions .github/workflows/docker-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,16 @@ jobs:
push: true
tags: |
ghcr.io/coder/coder-base:latest

- name: Verify that images are pushed properly
run: |
manifests=$(
docker manifest inspect ghcr.io/coder/coder-base:latest | \
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
)

# Verify all 3 platforms are present.
set -euxo pipefail
echo "$manifests" | grep -q linux/amd64
echo "$manifests" | grep -q linux/arm64
echo "$manifests" | grep -q linux/arm/v7
13 changes: 13 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,19 @@ jobs:
tags: |
${{ steps.image-base-tag.outputs.tag }}

- name: Verify that base images are pushed properly
run: |
manifests=$(
docker manifest inspect "${{ steps.image-base-tag.outputs.tag }}" | \
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
)

# Verify all 3 platforms are present.
set -euxo pipefail
echo "$manifests" | grep -q linux/amd64
echo "$manifests" | grep -q linux/arm64
echo "$manifests" | grep -q linux/arm/v7

- name: Build Linux Docker images
run: |
set -euxo pipefail
Expand Down