From: Dessalines Date: Wed, 21 Jun 2023 19:46:32 +0000 (-0400) Subject: Trying to fix version again. (#3246) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/README.md?a=commitdiff_plain;h=d4f52b78b38463cd4bff1f189eda66ef9c227dd5;p=lemmy.git Trying to fix version again. (#3246) --- 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