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

build: Update Dockerfile to use APP_VER instead of APP_REPO_TAG

parent 8ce22815
No related branches found
No related tags found
1 merge request!11Refactor deployment
Pipeline #71668 failed with stages
in 1 minute and 51 seconds
......@@ -4,11 +4,12 @@ RUN apk add git
WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/cache
ARG APP_REPO_TAG
ARG APP_VER
ADD . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$APP_REPO_TAG" -mod=vendor -o /tmp/cache ./cmd/cache/...
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$APP_VER" -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