Support notification re deprecated repo

This commit is contained in:
shamoon 2023-10-03 15:09:25 -07:00
parent 7adfe2ffd9
commit aa5d24b9e4
4 changed files with 43 additions and 1 deletions

View file

@ -23,6 +23,7 @@ WORKDIR /app
ARG BUILDTIME
ARG VERSION
ARG REVISION
ARG DEPRECATED_REPO
COPY --link --from=deps /app/node_modules ./node_modules/
COPY . .
@ -30,7 +31,7 @@ COPY . .
SHELL ["/bin/ash", "-xeo", "pipefail", "-c"]
RUN npm run telemetry \
&& mkdir config \
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION npm run build
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION NEXT_PUBLIC_DEPRECATED_REPO=$DEPRECATED_REPO npm run build
# Production image, copy all the files and run next
FROM docker.io/node:18-alpine AS runner