File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ RUN apt-get install -y cmake pkg-config libssl-dev librdkafka-dev protobuf-compi
9
9
RUN USER=root cargo new --bin taskbroker
10
10
WORKDIR /taskbroker
11
11
12
- ARG config_file=config-sentry-dev.yaml
12
+ # This is set by the cloudbuild.yaml file
13
+ ARG TASKBROKER_GIT_REVISION
14
+ ARG CONFIG_FILE=config-sentry-dev.yaml
15
+
16
+ ENV TASKBROKER_VERSION=$TASKBROKER_GIT_REVISION
13
17
14
18
# All these files are required to build or run the application
15
19
COPY ./Cargo.lock ./Cargo.lock
16
20
COPY ./Cargo.toml ./Cargo.toml
17
21
COPY ./migrations ./migrations
18
- COPY ./config/${config_file } ./config.yaml
22
+ COPY ./config/${CONFIG_FILE } ./config.yaml
19
23
COPY ./benches ./benches
20
24
21
- # This is set by the cloudbuild.yaml file
22
- ARG TASKBROKER_GIT_REVISION=""
23
- ENV TASKBROKER_GIT_REVISION=${TASKBROKER_GIT_REVISION}
24
-
25
25
# Build dependencies in a way they can be cached
26
26
RUN cargo build --release
27
27
RUN rm src/*.rs
@@ -33,7 +33,7 @@ COPY ./src ./src
33
33
RUN rm ./target/release/deps/taskbroker*
34
34
RUN cargo build --release
35
35
36
- RUN echo "${TASKBROKER_GIT_REVISION }" > ./VERSION
36
+ RUN echo "${TASKBROKER_VERSION }" > ./VERSION
37
37
38
38
# Runtime image
39
39
FROM rust:1-bookworm
You can’t perform that action at this time.
0 commit comments