forked from eatvio/eatvio-infra
Update .gitea/workflows/test_infra.yaml
This commit is contained in:
@@ -17,16 +17,17 @@ jobs:
|
||||
run: |
|
||||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
||||
mkdir -p ~/.ssh
|
||||
ssh-add - <<< "${{ vars.SSH_PRIVATE_KEY }}"
|
||||
# echo "${{ vars.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p 222 10.55.5.123 >> ~/.ssh/known_hosts
|
||||
# ssh-add - <<< "${{ vars.SSH_PRIVATE_KEY }}"
|
||||
ssh-add - <<< "${{ vars.SSH_PRIVATE_KEY }}" || true
|
||||
ssh-keyscan -p 222 10.55.5.123 >> ~/.ssh/known_hosts || true
|
||||
chmod 644 ~/.ssh/known_hosts || true
|
||||
chmod 600 ~/.ssh/id_rsa || true
|
||||
chmod 700 ~/.ssh || true
|
||||
|
||||
- name: init containers
|
||||
env:
|
||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||
run: |
|
||||
cat ~/.ssh/known_hosts
|
||||
make init
|
||||
|
||||
- name: run CI
|
||||
|
||||
Reference in New Issue
Block a user