Skip to content

Commit

Permalink
goarch from github actions targetarch (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryRomanov authored Jun 10, 2024
1 parent c0555aa commit d270e78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build

ARG VERSION
ARG BUILD_TIME
ARG TARGETARCH

WORKDIR /file.d

Expand All @@ -16,7 +17,7 @@ COPY . .

ENV CGO_ENABLED 0
ENV GOOS linux
ENV GOARCH amd64
ENV GOARCH ${TARGETARCH:-amd64}

RUN go build -trimpath \
-pgo default.pgo \
Expand Down

0 comments on commit d270e78

Please sign in to comment.