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 88b45ff commit e214e98
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docker-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
runs-on: self-hosted
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
include:
- platform: linux/amd64
platform-name: amd64
Expand Down Expand Up @@ -196,7 +193,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64 # Build both platforms in one go
platforms: ${{ matrix.platform }} # Build one platform at a time
cache-from: |
type=registry,ref=docker.io/zx8086/capella-document-search:buildcache-${{ matrix.platform-name }}
cache-to: |
Expand All @@ -209,7 +206,8 @@ jobs:
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
docker.io/zx8086/capella-document-search:latest-amd64 \
docker.io/zx8086/capella-document-search:latest-arm64
# Verify the manifest
echo "Verifying manifest..."
Expand Down

0 comments on commit e214e98

Please sign in to comment.