Skip to content

Commit a332f78

Browse files
committed
refactor: Remove default TARGETARCH and use Docker Buildx auto-detection
1 parent 2e9b4f4 commit a332f78

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-gateway.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: |
2626
git clone https://github.com/centralmind/gateway.git /tmp/gateway
2727
28+
- name: Remove TARGETARCH default from Dockerfile.build
29+
run: |
30+
sed -i '/^ARG TARGETARCH=amd64$/d' /tmp/gateway/Dockerfile.build
31+
2832
- name: Set up QEMU
2933
uses: docker/setup-qemu-action@v3
3034

@@ -50,8 +54,7 @@ jobs:
5054
type=raw,value=latest,enable={{is_default_branch}}
5155
5256
- name: Build and push Docker image
53-
run: |
54-
docker buildx build --platform=linux/arm64 --file=Dockerfile.build --build-arg TARGETARCH=arm64 -t test .
57+
uses: docker/build-push-action@v5
5558
with:
5659
context: /tmp/gateway
5760
file: /tmp/gateway/Dockerfile.build

0 commit comments

Comments
 (0)