From d4f52b78b38463cd4bff1f189eda66ef9c227dd5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 21 Jun 2023 15:46:32 -0400 Subject: [PATCH] Trying to fix version again. (#3246) --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index f28c3ac9..42937903 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,7 +20,8 @@ RUN --mount=type=cache,target=/app/target \ # Release mode build RUN \ if [ "$RUST_RELEASE_MODE" = "release" ] ; then \ - cargo build --target ${CARGO_BUILD_TARGET} --release \ + echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs" \ + && cargo build --target ${CARGO_BUILD_TARGET} --release \ && cp ./target/$CARGO_BUILD_TARGET/$RUST_RELEASE_MODE/lemmy_server /app/lemmy_server; \ fi -- 2.44.1