Skip to content

Commit 397b637

Browse files
author
colinlyguo
committed
fix CI
1 parent 6b996c2 commit 397b637

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/common.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@ jobs:
4242
uses: Swatinem/rust-cache@v2
4343
with:
4444
workspaces: "common/libzkp/impl -> target"
45-
- name: Setup SSH for private repositories
45+
- name: Combine all deploy keys
46+
run: |
47+
echo "${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}" > key1
48+
echo "${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}" > key2
49+
echo "${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}" > key3
50+
cat key1 key2 key3 > all_keys
51+
chmod 600 all_keys
52+
- name: Setup SSH Agent
4653
uses: webfactory/[email protected]
4754
with:
48-
ssh-private-key: |
49-
${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
50-
${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}
51-
${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}
55+
ssh-private-key: ${{ steps.setup-keys.outputs.keys }}
56+
env:
57+
SSH_PRIVATE_KEY: ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }} # just for syntax correctness
5258
- name: Lint
5359
working-directory: 'common'
5460
run: |

.github/workflows/docker.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,19 @@ 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: Setup SSH for private repositories
310+
- name: Combine all deploy keys
311+
run: |
312+
echo "${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}" > key1
313+
echo "${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}" > key2
314+
echo "${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}" > key3
315+
cat key1 key2 key3 > all_keys
316+
chmod 600 all_keys
317+
- name: Setup SSH Agent
311318
uses: webfactory/[email protected]
312319
with:
313-
ssh-private-key: |
314-
${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }}
315-
${{ secrets.OPENVM_STARK_GPU_SSH_PRIVATE_KEY }}
316-
${{ secrets.PLONKY3_GPU_SSH_PRIVATE_KEY }}
320+
ssh-private-key: ${{ steps.setup-keys.outputs.keys }}
321+
env:
322+
SSH_PRIVATE_KEY: ${{ secrets.OPENVM_GPU_SSH_PRIVATE_KEY }} # just for syntax correctness
317323
- name: Run custom script
318324
run: |
319325
./build/dockerfiles/coordinator-api/init-openvm.sh

0 commit comments

Comments
 (0)