fixup! Add version key to /stats and more arguments
Some checks failed
CI / build (push) Failing after 26s
Some checks failed
CI / build (push) Failing after 26s
This commit is contained in:
parent
5101648c94
commit
e016bdaebf
1 changed files with 2 additions and 1 deletions
|
@ -2,9 +2,10 @@ FROM golang:alpine AS build
|
||||||
|
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
RUN apk add --no-cache build-base libwebp-dev
|
RUN apk add --no-cache build-base libwebp-dev git
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
COPY ./.git/ ./.git/
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
go build -ldflags "-s -w -X 'main.version=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)'"
|
go build -ldflags "-s -w -X 'main.version=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)'"
|
||||||
|
|
Loading…
Reference in a new issue