@@ -47,28 +47,36 @@ WORKDIR /usr/src
47
47
48
48
COPY --from=planner /usr/src/recipe.json recipe.json
49
49
50
- RUN if [ $VERTEX = "true" ]; \
50
+ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
51
+ --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
52
+ if [ $VERTEX = "true" ]; \
51
53
then \
52
54
cargo chef cook --release --features google --recipe-path recipe.json && sccache -s; \
53
55
else \
54
56
cargo chef cook --release --recipe-path recipe.json && sccache -s; \
55
57
fi;
56
58
57
- RUN if [ $VERTEX = "true" ]; \
59
+ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
60
+ --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
61
+ if [ $VERTEX = "true" ]; \
58
62
then \
59
63
CUDA_COMPUTE_CAP=75 cargo chef cook --release --features google --features candle-cuda-turing --recipe-path recipe.json && sccache -s; \
60
64
else \
61
65
CUDA_COMPUTE_CAP=75 cargo chef cook --release --features candle-cuda-turing --recipe-path recipe.json && sccache -s; \
62
66
fi;
63
67
64
- RUN if [ $VERTEX = "true" ]; \
68
+ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
69
+ --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
70
+ if [ $VERTEX = "true" ]; \
65
71
then \
66
72
CUDA_COMPUTE_CAP=80 cargo chef cook --release --features google --features candle-cuda --recipe-path recipe.json && sccache -s; \
67
73
else \
68
74
CUDA_COMPUTE_CAP=80 cargo chef cook --release --features candle-cuda --recipe-path recipe.json && sccache -s; \
69
75
fi;
70
76
71
- RUN if [ $VERTEX = "true" ]; \
77
+ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
78
+ --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
79
+ if [ $VERTEX = "true" ]; \
72
80
then \
73
81
CUDA_COMPUTE_CAP=90 cargo chef cook --release --features google --features candle-cuda --recipe-path recipe.json && sccache -s; \
74
82
else \
0 commit comments