Обновить .gitea/workflows/test.yaml
All checks were successful
Test cloud-images / building (push) Successful in 21s

This commit is contained in:
Надежда Краснобородько 2024-09-25 14:58:33 +03:00
parent d2320c0b0a
commit 5ec345a443

View File

@ -13,37 +13,18 @@ jobs:
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/builder.key
chmod 600 ~/.ssh/builder.key
echo "$SSH_T_KEY" > ~/.ssh/taishan.key
chmod 600 ~/.ssh/taishan.key
cat >>~/.ssh/config <<END
Host builder
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/builder.key
StrictHostKeyChecking no
Host cb_taishan
HostName 127.0.0.1
Host abuilder
HostName $SSH_T_HOST
User $SSH_T_USER
Port $SSH_T_PORT
IdentityFile ~/.ssh/taishan.key
IdentitiesOnly yes
PasswordAuthentication no
ProxyCommand ssh $SSH_T_USER@$SSH_T_HOST -o StrictHostKeyChecking="no" -W %h:%p
IdentityFile ~/.ssh/builder.key
StrictHostKeyChecking no
END
env:
SSH_USER: ${{ secrets.BUILDER_SSH_USER }}
SSH_KEY: ${{ secrets.BUILDER_SSH_KEY }}
SSH_T_KEY: ${{ secrets.TAISHAN_SSH_KEY }}
SSH_HOST: ${{ secrets.BUILDER_SSH_HOST }}
SSH_T_USER: ${{ secrets.TAISHAN_SSH_USER }}
SSH_T_PORT: ${{ secrets.TAISHAN_SSH_PORT }}
SSH_T_HOST: ${{ secrets.TAISHAN_SSH_HOST }}
- name: Run script for aarch
run: |
ssh -A -vvv $SSH_T_USER@$SSH_T_HOST -o IdentityFile="~/.ssh/builder.key" -o IdentitiesOnly=yes -o StrictHostKeyChecking=no \
"ssh $SSH_T_USER@127.0.0.1 -o IdentityFile='~/.ssh/vml' -o IdentitiesOnly=yes -p $SSH_T_PORT 'ls -a'"
env:
SSH_T_USER: ${{ secrets.TAISHAN_SSH_USER }}
SSH_T_HOST: ${{ secrets.TAISHAN_SSH_HOST }}
SSH_T_PORT: ${{ secrets.TAISHAN_SSH_PORT }}
ssh -A abuilder "ssh builder 'ls -a'"