Skip to content

Commit 9ef2c5d

Browse files
author
marwan37
committed
add qemu step for cross-platform builds and explicitly set platform again
1 parent a309e72 commit 9ef2c5d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-push-codespace.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,15 @@ jobs:
106106
id: timestamp
107107
run: echo "timestamp=$(date -u +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
108108

109+
- name: Set up QEMU
110+
uses: docker/setup-qemu-action@v3
111+
109112
- name: Set up Docker Buildx
110113
if: steps.check.outputs.exists == 'true'
111114
uses: docker/setup-buildx-action@v3
115+
with:
116+
platforms: linux/amd64
117+
install: true
112118

113119
- name: Login to DockerHub
114120
if: steps.check.outputs.exists == 'true'
@@ -132,6 +138,7 @@ jobs:
132138
with:
133139
context: .
134140
file: ${{ matrix.project }}/Dockerfile.codespace
141+
platforms: linux/amd64 # Force amd64 build
135142
push: true
136143
tags: ${{ steps.meta.outputs.tags }}
137144
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)