Skip to content

Commit 4ecdde3

Browse files
authored
ci: change cargo chef call so it will ignore the GUI client (firezone#3740)
I don't know much about `cargo chef` so I gave this its own PR in case I'm doing something that'll subtly break it I've run into this problem on some branches and not others, where it's trying to build all the Tauri / glib stuff even though the Docker image won't need it: https://github.com/firezone/firezone/actions/runs/8012206575/job/21887478015#step:7:1175
1 parent d16fb61 commit 4ecdde3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rust/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM alpine:${ALPINE_VERSION} as rust
1212
# is updated with the current date. It will force refresh of all
1313
# of the base images and things like `apk add` won't be using
1414
# old cached versions when the Dockerfile is built.
15-
ENV REFRESHED_AT=2023-12-11 \
15+
ENV REFRESHED_AT=2024-02-22 \
1616
LANG=C.UTF-8 \
1717
TERM=xterm
1818

@@ -68,7 +68,7 @@ RUN set -xe \
6868
WORKDIR /build
6969

7070
# Create a cache recipe for dependencies, which allows
71-
# to levearge Docker layer caching in a later build stage
71+
# to leverage Docker layer caching in a later build stage
7272
FROM chef as planner
7373

7474
COPY . .
@@ -80,8 +80,9 @@ FROM chef as builder
8080

8181
COPY --from=planner /build/recipe.json .
8282

83+
ARG PACKAGE
8384
RUN set -xe \
84-
&& cargo chef cook --recipe-path recipe.json
85+
&& cargo chef cook --recipe-path recipe.json --bin ${PACKAGE}
8586

8687
COPY . .
8788

0 commit comments

Comments
 (0)