Skip to content

Commit

Permalink
Update Dockerfile build arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters committed Jul 20, 2023
1 parent 531cea8 commit f9874a8
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 @@ -6,7 +6,7 @@ ARG BUILDPLATFORM TARGETOS TARGETARCH
ARG APP_VERSION=develop
ARG PACKAGE_COMMONS=github.com/reportportal/commons-go/v5
ARG REPO_NAME=reportportal/service-index
ARG COMMIT_HASH
ARG BUILD_BRANCH
ARG BUILD_DATE

ADD . ${APP_DIR}
Expand All @@ -17,7 +17,7 @@ RUN echo "I am running on $BUILDPLATFORM, building for TargetOS: $TARGETOS and T
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-ldflags "-extldflags '"-static"' \
-X ${PACKAGE_COMMONS}/commons.repo=${REPO_NAME} \
-X ${PACKAGE_COMMONS}/commons.branch=${COMMIT_HASH} \
-X ${PACKAGE_COMMONS}/commons.branch=${BUILD_BRANCH} \
-X ${PACKAGE_COMMONS}/commons.buildDate=${BUILD_DATE} \
-X ${PACKAGE_COMMONS}/commons.version=${APP_VERSION}" \
-o app ./
Expand Down

0 comments on commit f9874a8

Please sign in to comment.