mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 01:35:21 +00:00
Trying to fix version again. (#3246)
This commit is contained in:
parent
4cdb9583e9
commit
d4f52b78b3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue