cli: Fix up issue with the Git revision not added in Docker build.
This commit is contained in:
parent
edea45d4c8
commit
6f0d3d787a
|
@ -8,7 +8,7 @@ RUN rustup component add rustfmt clippy \
|
|||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y chromium chromium-driver zip nodejs
|
||||
&& apt-get install -y chromium chromium-driver zip nodejs git
|
||||
|
||||
# Caches Rust builds
|
||||
WORKDIR /app/rookeries/
|
||||
|
@ -30,6 +30,7 @@ COPY ["src", "/app/rookeries/src/"]
|
|||
COPY ["template", "/app/rookeries/template/"]
|
||||
COPY ["web-app/", "/app/rookeries/web-app/"]
|
||||
COPY ["plugins/", "/app/rookeries/plugins/"]
|
||||
COPY [".git/", "/app/rookeries/.git/"]
|
||||
|
||||
RUN cargo make build-all && cargo build --release
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ pub fn build_site(project: &Project, activate_dev_mode: bool) -> Result<(), Rook
|
|||
"app": env!("CARGO_PKG_NAME").to_string(),
|
||||
"gitRevision": Rookeries::git_revision(),
|
||||
"contentBuildId": Uuid::new_v4(),
|
||||
"build-time": build_timestamp,
|
||||
"buildTime": build_timestamp,
|
||||
});
|
||||
|
||||
header_message("Creating the index page...");
|
||||
|
|
Loading…
Reference in New Issue