mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
feat(docker): add build version to built images
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
d2b25b6cdd
commit
a3c74e7310
3 changed files with 5 additions and 1 deletions
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -46,3 +46,5 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
build-args: |
|
||||
BUILD_VERSION=${{ github.event.head_commit.id }}
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
# BUILD
|
||||
FROM node:18-alpine AS builder
|
||||
ARG BUILD_VERSION=CLIENT_VERSION_MISSING
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
RUN yarn install --immutable && \
|
||||
sed -i "s/CLIENT_VERSION_MISSING/${BUILD_VERSION}/" src/version.json && \
|
||||
yarn build:for-real-backend
|
||||
|
||||
# RUNNER
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "0.0",
|
||||
"version": "CLIENT_VERSION_MISSING",
|
||||
"sourceCodeUrl": "https://github.com/hedgedoc/react-client",
|
||||
"issueTrackerUrl": "https://github.com/hedgedoc/react-client/issues"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue