File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 6060 run : |
6161 git config --global url."git@github.com:".insteadOf "https://github.com/"
6262
63+ - name : Verify SSH agent and add GitHub to known hosts
64+ run : |
65+ ssh-add -l
66+ mkdir -p ~/.ssh
67+ ssh-keyscan github.com >> ~/.ssh/known_hosts
68+ echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
69+
6370 - name : Build and push platform-specific image
6471 id : build
6572 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # @6.18.0
Original file line number Diff line number Diff line change @@ -9,12 +9,15 @@ RUN cargo chef prepare --recipe-path recipe.json
99FROM chef AS builder
1010COPY --from=planner /app/recipe.json recipe.json
1111
12+ # Force cargo to use git CLI for SSH
13+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
14+
1215# Build dependencies - this is the caching Docker layer
13- RUN cargo chef cook --release --recipe-path recipe.json
16+ RUN --mount=type=ssh cargo chef cook --release --recipe-path recipe.json
1417
1518# Build application
1619COPY . .
17- RUN cargo build --release --bin thirdweb-engine
20+ RUN --mount=type=ssh cargo build --release --bin thirdweb-engine
1821
1922# Runtime stage
2023FROM debian:bookworm-slim AS runtime
You can’t perform that action at this time.
0 commit comments