CI: build the release image for linux/amd64
The runner can be arm64; the deploy host is amd64 (v0.3.1 failed with exec format error). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
42ea9d6531
commit
49f3d4b6a5
1 file changed
+2
-1
@@ -66,7 +66,8 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
VERSION="${GITHUB_REF_NAME#v}"
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
docker build -t "$IMAGE:$VERSION" -t "$IMAGE:latest" .
|
# The runner may be arm64 (a Mac); the deploy host is amd64, so always build for it.
|
||||||
|
docker build --platform linux/amd64 -t "$IMAGE:$VERSION" -t "$IMAGE:latest" .
|
||||||
docker push "$IMAGE:$VERSION"
|
docker push "$IMAGE:$VERSION"
|
||||||
docker push "$IMAGE:latest"
|
docker push "$IMAGE:latest"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user