Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify arch in release process
Browse files Browse the repository at this point in the history
heubeck committed Jun 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 67366dc commit 6414986
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ jobs:
context: .
file: src/main/docker/Dockerfile
platforms: linux/${{ matrix.arch }}
provenance: false
tags: |
${{ env.image_name }}:${{ env.VERSION }}-${{ matrix.arch }}
load: ${{ github.ref != 'refs/heads/main' }}
@@ -101,13 +102,12 @@ jobs:

- name: Build manifest for ${{ env.VERSION }} and latest
run: |
podman pull "${image_name}:${VERSION}-amd64"
podman pull "${image_name}:${VERSION}-arm64"
sha_amd64=$(podman inspect "${image_name}:${VERSION}-amd64" | jq -r '.[] | select(.Architecture == "amd64" and .Os == "linux") | .Digest')
sha_arm64=$(podman inspect "${image_name}:${VERSION}-arm64" | jq -r '.[] | select(.Architecture == "arm64" and .Os == "linux") | .Digest')
sha_amd64=$(podman manifest inspect "${image_name}:${VERSION}-amd64" | jq -r '.manifests[] | select (.platform.architecture == "amd64" and .platform.os == "linux") | .digest')
sha_arm64=$(podman manifest inspect "${image_name}:${VERSION}-arm64" | jq -r '.manifests[] | select (.platform.architecture == "arm64" and .platform.os == "linux") | .digest')
for v in ${VERSION} latest; do
echo "Creating manifest for ${image_name}:${v}"
podman manifest create "${image_name}:${v}" \
"${image_name}@${sha_amd64}" \
"${image_name}@${sha_arm64}"

0 comments on commit 6414986

Please sign in to comment.