Skip to content

Commit c2d5431

Browse files
author
colinlyguo
committed
fix
1 parent 3aa76a6 commit c2d5431

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/docker.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,26 @@ jobs:
311311
uses: webfactory/[email protected]
312312
with:
313313
ssh-private-key: ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
314+
- name: Setup SSH config
315+
run: |
316+
mkdir -p ~/.ssh
317+
echo "Host github.com" > ~/.ssh/config
318+
echo " User git" >> ~/.ssh/config
319+
echo " IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
320+
echo " StrictHostKeyChecking no" >> ~/.ssh/config
321+
chmod 600 ~/.ssh/config
314322
- name: Setup Cargo config
315323
run: |
316324
mkdir -p ~/.cargo
317325
echo '[net]' > ~/.cargo/config.toml
318326
echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml
327+
- name: Debug SSH agent
328+
run: ssh-add -l
329+
- name: Build with cargo chef
330+
run: cargo chef cook --release --recipe-path recipe.json
331+
env:
332+
CARGO_NET_GIT_FETCH_WITH_CLI: true
333+
SSH_AUTH_SOCK: $SSH_AUTH_SOCK
319334
- name: Build and push
320335
uses: docker/build-push-action@v3
321336
env:

0 commit comments

Comments
 (0)