From 737b526a368118c635babe138e12536385a64838 Mon Sep 17 00:00:00 2001 From: 7-Zark-7 <1085655+zx8086@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:17:08 +0100 Subject: [PATCH] Multi-build manifests --- .github/workflows/docker-ci-cd.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-ci-cd.yml b/.github/workflows/docker-ci-cd.yml index 12b94c3..84060fd 100644 --- a/.github/workflows/docker-ci-cd.yml +++ b/.github/workflows/docker-ci-cd.yml @@ -179,21 +179,24 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} - tags: docker.io/zx8086/capella-document-search:latest + tags: | + docker.io/zx8086/capella-document-search:latest + docker.io/zx8086/capella-document-search:${{ github.sha }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64,linux/arm64 cache-from: type=registry,ref=docker.io/zx8086/capella-document-search:buildcache cache-to: type=registry,ref=docker.io/zx8086/capella-document-search:buildcache,mode=max provenance: false + outputs: type=registry - - name: Verify multi-arch image + - name: Verify image if: github.event_name != 'pull_request' run: | # Wait for image to be available sleep 15 - # Verify the manifest - echo "Verifying manifest..." + # Verify the image and its architectures + echo "Verifying image manifest..." docker buildx imagetools inspect docker.io/zx8086/capella-document-search:latest - name: Create multi-arch manifest