Skip to content

Commit

Permalink
Merge pull request #82 from gschafra/multiarch-build
Browse files Browse the repository at this point in the history
ci: Fix multiarch build (go ldflags xtra arg quoting)
  • Loading branch information
strider2038 authored Nov 30, 2022
2 parents 7b7aded + e898cb7 commit eb6f24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN set -e \
&& cd /project \
&& go mod download \
&& cd /project/cmd/openapi-mock \
&& CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-w -s -X main.version=${APP_VERSION} -X main.buildTime=${BUILD_TIME}" -o openapi-mock \
&& CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-w -s -X 'main.version=${APP_VERSION}' -X 'main.buildTime=${BUILD_TIME}'" -o openapi-mock \
&& ls -la | grep "openapi-mock"

# final stage
FROM alpine
FROM --platform=$BUILDPLATFORM alpine

LABEL "homepage"="https://github.com/muonsoft/openapi-mock"
LABEL "maintainer"="Igor Lazarev <[email protected]>"
Expand Down

0 comments on commit eb6f24e

Please sign in to comment.