temporarily log version/commit

pull/1118/head
Willy 2023-02-02 20:14:19 +01:00
parent 38913a9889
commit 51051377ff
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ COPY . .
COPY --from=frontend /statping/dist/ ./source/dist/ COPY --from=frontend /statping/dist/ ./source/dist/
RUN go install github.com/GeertJohan/go.rice/rice@latest RUN go install github.com/GeertJohan/go.rice/rice@latest
RUN cd source && rice embed-go RUN cd source && rice embed-go
RUN echo $VERSION $COMMIT
RUN go build -a -ldflags "-s -w -extldflags -static -X \"main.VERSION=${VERSION}\" -X main.COMMIT=${COMMIT}" -o statping --tags "netgo linux" ./cmd RUN go build -a -ldflags "-s -w -extldflags -static -X \"main.VERSION=${VERSION}\" -X main.COMMIT=${COMMIT}" -o statping --tags "netgo linux" ./cmd
RUN chmod a+x statping && mv statping /go/bin/statping RUN chmod a+x statping && mv statping /go/bin/statping
# /go/bin/statping - statping binary # /go/bin/statping - statping binary