Skip to content

Commit 3aa76a6

Browse files
author
colinlyguo
committed
fix
1 parent 4c04e40 commit 3aa76a6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,22 +307,27 @@ jobs:
307307
REPOSITORY: coordinator-api
308308
run: |
309309
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }}
310-
- name: Give Github Action access to openvm-gpu
310+
- name: Setup SSH for private repos
311311
uses: webfactory/[email protected]
312312
with:
313-
ssh-private-key: |
314-
${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
313+
ssh-private-key: ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
314+
- name: Setup Cargo config
315+
run: |
316+
mkdir -p ~/.cargo
317+
echo '[net]' > ~/.cargo/config.toml
318+
echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml
315319
- name: Build and push
316320
uses: docker/build-push-action@v3
317321
env:
318322
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
319323
REPOSITORY: coordinator-api
320324
IMAGE_TAG: ${{ github.ref_name }}
321325
with:
322-
ssh: default
323326
context: .
324327
file: ./build/dockerfiles/coordinator-api.Dockerfile
325328
push: true
329+
build-args: |
330+
CARGO_NET_GIT_FETCH_WITH_CLI=true
326331
tags: |
327332
scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
328333
scrolltech/${{ env.REPOSITORY }}:latest

0 commit comments

Comments
 (0)