fix: simplify Docker build configuration by removing unnecessary platform and architecture settings

This commit is contained in:
JustSong
2025-02-09 14:33:25 +08:00
parent 6e7a1c2323
commit 20435fcbfc
2 changed files with 3 additions and 6 deletions

View File

@@ -62,9 +62,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: ${{ contains(github.ref, 'alpha') && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
platforms: ${{ contains(github.ref, 'alpha') && 'linux/amd64' || 'linux/amd64' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
TARGETARCH=${{ startsWith(matrix.platform, 'linux/arm64') && 'arm64' || 'amd64' }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -24,8 +24,7 @@ RUN apk add --no-cache \
ENV GO111MODULE=on \
CGO_ENABLED=1 \
GOOS=linux \
GOARCH=$TARGETARCH
GOOS=linux
WORKDIR /build