Skip to content

Commit

Permalink
core: Dockerfile: Add default value for GIT_DESCRIBE_TAGS and VITE_AP…
Browse files Browse the repository at this point in the history
…P_GIT_DESCRIBE

This avoid building the entire docker if building locally for tests

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Apr 22, 2024
1 parent 7c1623c commit 7f19e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Dockerfile
Expand Up @@ -2,6 +2,7 @@
FROM --platform=$BUILDPLATFORM oven/bun:1.0.3-slim AS frontendBuilder

ARG VITE_APP_GIT_DESCRIBE
ENV VITE_APP_GIT_DESCRIBE=${VITE_APP_GIT_DESCRIBE:-none/none-0-g00000000}
RUN [ -z "$VITE_APP_GIT_DESCRIBE" ] \
&& echo "VITE_APP_GIT_DESCRIBE argument not provided." \
&& echo "Use: --build-arg VITE_APP_GIT_DESCRIBE=\$(git describe --long --always --dirty --all)" \
Expand All @@ -27,6 +28,7 @@ ARG TARGETVARIANT
# Ensure that the git describe exists and also is in valid format as well
# The format can be invalid if someone is build BlueOS without a tag as reference
ARG GIT_DESCRIBE_TAGS
ENV GIT_DESCRIBE_TAGS=${GIT_DESCRIBE_TAGS:-0.0.0-0-g00000000}
RUN [ -z "$GIT_DESCRIBE_TAGS" ] \
&& echo "GIT_DESCRIBE_TAGS argument not provided." \
&& echo "Use: --build-arg GIT_DESCRIBE_TAGS=\$(git describe --tags --long --always)" \
Expand Down

0 comments on commit 7f19e3b

Please sign in to comment.