Skip to content

Commit b4e6e84

Browse files
committed
Enable multi-platform builds for Docker images
1 parent 5314f41 commit b4e6e84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/container_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: docker/build-push-action@v6
5353
with:
5454
context: .
55-
platforms: linux/amd64 # ,linux/arm64
55+
platforms: linux/amd64,linux/arm64
5656
push: ${{ github.event_name != 'pull_request' }}
5757
tags: ${{ steps.tag_names.outputs.tags }}
5858
labels: ${{ steps.tag_names.outputs.labels }}

build_multi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ docker buildx build \
1313
-t ${REGISTRY_NAME}/${IMAGE_NAME}:latest \
1414
--build-arg IMAGE_NAME=${IMAGE_NAME} \
1515
--progress plain \
16+
--push \
1617
--platform=linux/arm64,linux/amd64 "${@}"
1718

18-
# --push \
1919
# --no-cache --pull \

0 commit comments

Comments
 (0)