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 4c966bb commit de7e7cd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,17 @@ jobs:
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}
provenance: false

- name: Create and push multi-platform manifest
- name: Create multi-arch manifest
if: github.event_name != 'pull_request'
run: |
echo "Creating multi-platform manifest..."
docker buildx imagetools create -t docker.io/zx8086/capella-document-search:latest \
docker.io/zx8086/capella-document-search:latest
# Wait for images to be available
sleep 15
# Create and push the manifest for latest tag
docker buildx imagetools create \
-t docker.io/zx8086/capella-document-search:latest \
docker.io/zx8086/capella-document-search:master
# Verify the manifest
echo "Verifying manifest..."
docker buildx imagetools inspect docker.io/zx8086/capella-document-search:latest
Expand Down

0 comments on commit de7e7cd

Please sign in to comment.