Skip to content

Commit

Permalink
Add args to dockerfile to passing version and git hash
Browse files Browse the repository at this point in the history
  • Loading branch information
alinz committed Apr 18, 2024
1 parent d37fa91 commit bcf21d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ ENV GOPRIVATE=ella.to/*
## TEST GO UNIT TESTS
RUN go test -race -timeout 50s ./... -v

ARG GIT_COMMIT
ARG VERSION

## BUILD API
RUN go build -ldflags="-w -s -X main.GitCommit=${GIT_COMMIT} -X main.Version=${VERSION}" -o ./bus-server cmd/server/main.go

Expand Down

0 comments on commit bcf21d2

Please sign in to comment.