This commit is contained in:
colinlyguo
2025-04-24 03:27:53 +08:00
parent 4c04e400ea
commit 3aa76a6baa

View File

@@ -307,11 +307,15 @@ jobs:
REPOSITORY: coordinator-api
run: |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }}
- name: Give Github Action access to openvm-gpu
- name: Setup SSH for private repos
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
ssh-private-key: ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
- name: Setup Cargo config
run: |
mkdir -p ~/.cargo
echo '[net]' > ~/.cargo/config.toml
echo 'git-fetch-with-cli = true' >> ~/.cargo/config.toml
- name: Build and push
uses: docker/build-push-action@v3
env:
@@ -319,10 +323,11 @@ jobs:
REPOSITORY: coordinator-api
IMAGE_TAG: ${{ github.ref_name }}
with:
ssh: default
context: .
file: ./build/dockerfiles/coordinator-api.Dockerfile
push: true
build-args: |
CARGO_NET_GIT_FETCH_WITH_CLI=true
tags: |
scrolltech/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
scrolltech/${{ env.REPOSITORY }}:latest