mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dashboard): correctly set current git commit hash during build
This commit is contained in:
parent
2e7f5c20aa
commit
7f816f50f7
1 changed files with 3 additions and 1 deletions
|
|
@ -3,12 +3,14 @@ FROM alpine:latest as builder
|
|||
RUN apk add nodejs-current yarn go git
|
||||
|
||||
COPY dashboard/ /build
|
||||
COPY .git/ /build/.git
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN yarn build
|
||||
|
||||
RUN go build -ldflags "-X dashboard/main.version=$(git rev-parse HEAD)"
|
||||
RUN sh -c 'go build -ldflags "-X main.version=$(git rev-parse HEAD)"'
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue