mirror of https://github.com/LemmyNet/lemmy.git
Trying to fix version again. (#3246)
parent
4cdb9583e9
commit
d4f52b78b3
|
@ -20,7 +20,8 @@ RUN --mount=type=cache,target=/app/target \
|
||||||
# Release mode build
|
# Release mode build
|
||||||
RUN \
|
RUN \
|
||||||
if [ "$RUST_RELEASE_MODE" = "release" ] ; then \
|
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; \
|
&& cp ./target/$CARGO_BUILD_TARGET/$RUST_RELEASE_MODE/lemmy_server /app/lemmy_server; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue