Skip to content

Commit

Permalink
Multi-build manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
zx8086 committed Jan 20, 2025
1 parent 777db7a commit 737b526
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 737b526

Please sign in to comment.