Skip to content
Snippets Groups Projects
Commit c1baca42 authored by Kalin Daskalov's avatar Kalin Daskalov
Browse files

add version argument in dockerfile

parent 33e020c1
Branches
No related tags found
No related merge requests found
...@@ -4,9 +4,11 @@ RUN apk add git ...@@ -4,9 +4,11 @@ RUN apk add git
WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/signer WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/signer
ARG APP_REPO_TAG
ADD . . ADD . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$(git describe --tags --always)" -mod=vendor -o /tmp/signer ./cmd/signer/... RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$APP_REPO_TAG" -mod=vendor -o /tmp/signer ./cmd/signer/...
FROM alpine:3.17 as runner FROM alpine:3.17 as runner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment