Skip to content

Commit 35e5759

Browse files
committed
fix: update Docker build workflow to conditionally set platforms based on branch
- Modified the platforms setting in the Docker build workflow to conditionally include ARM64 support only when on the main branch, enhancing build efficiency and flexibility.
1 parent 24cb84b commit 35e5759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
context: .
5555
push: ${{ github.event_name != 'pull_request' }}
56-
platforms: linux/amd64,linux/arm64
56+
platforms: ${{ github.ref == 'refs/heads/main' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
5757
tags: ${{ steps.meta.outputs.tags }}
5858
labels: ${{ steps.meta.outputs.labels }}
5959
cache-from: type=gha

0 commit comments

Comments
 (0)