Chore: display docker tag in UI for ci test builds (#7083)

This commit is contained in:
shamoon
2024-06-26 20:02:52 -07:00
committed by GitHub
parent 2b024dc72e
commit 2fa18b131f
2 changed files with 12 additions and 0 deletions

View File

@@ -13,6 +13,16 @@ WORKDIR /src/src-ui
RUN set -eux \
&& npm update npm -g \
&& npm ci
ARG PNGX_TAG_VERSION=
# Add the tag to the environment file if its a tagged dev build
RUN set -eux && \
case "${PNGX_TAG_VERSION}" in \
dev|fix*|feature*) \
sed -i -E "s/version: '([0-9\.]+)'/version: '\1 #${PNGX_TAG_VERSION}'/g" /src/src-ui/src/environments/environment.prod.ts \
;; \
esac
RUN set -eux \
&& ./node_modules/.bin/ng build --configuration production