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

Merge branch 'dockerfile-arg' into 'main'

add app version as dockerfile arg

See merge request eclipse/xfsc/tsa/cache!10
parents 88a9ddd7 303047dc
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,11 @@ RUN apk add git
WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/cache
ARG APP_REPO_TAG
ADD . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$(git describe --tags --always)" -mod=vendor -o /tmp/cache ./cmd/cache/...
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$APP_REPO_TAG" -mod=vendor -o /tmp/cache ./cmd/cache/...
FROM alpine:3.17 as runner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment