Обновить .gitea/workflows/test.yaml
All checks were successful
Test cloud-images / building (push) Successful in 21s
All checks were successful
Test cloud-images / building (push) Successful in 21s
This commit is contained in:
parent
d2320c0b0a
commit
5ec345a443
@ -13,37 +13,18 @@ jobs:
|
|||||||
mkdir -p ~/.ssh/
|
mkdir -p ~/.ssh/
|
||||||
echo "$SSH_KEY" > ~/.ssh/builder.key
|
echo "$SSH_KEY" > ~/.ssh/builder.key
|
||||||
chmod 600 ~/.ssh/builder.key
|
chmod 600 ~/.ssh/builder.key
|
||||||
echo "$SSH_T_KEY" > ~/.ssh/taishan.key
|
|
||||||
chmod 600 ~/.ssh/taishan.key
|
|
||||||
cat >>~/.ssh/config <<END
|
cat >>~/.ssh/config <<END
|
||||||
Host builder
|
Host abuilder
|
||||||
HostName $SSH_HOST
|
HostName $SSH_T_HOST
|
||||||
User $SSH_USER
|
|
||||||
IdentityFile ~/.ssh/builder.key
|
|
||||||
StrictHostKeyChecking no
|
|
||||||
Host cb_taishan
|
|
||||||
HostName 127.0.0.1
|
|
||||||
User $SSH_T_USER
|
User $SSH_T_USER
|
||||||
Port $SSH_T_PORT
|
|
||||||
IdentityFile ~/.ssh/taishan.key
|
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
PasswordAuthentication no
|
IdentityFile ~/.ssh/builder.key
|
||||||
ProxyCommand ssh $SSH_T_USER@$SSH_T_HOST -o StrictHostKeyChecking="no" -W %h:%p
|
|
||||||
StrictHostKeyChecking no
|
StrictHostKeyChecking no
|
||||||
END
|
END
|
||||||
env:
|
env:
|
||||||
SSH_USER: ${{ secrets.BUILDER_SSH_USER }}
|
|
||||||
SSH_KEY: ${{ secrets.BUILDER_SSH_KEY }}
|
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_USER: ${{ secrets.TAISHAN_SSH_USER }}
|
||||||
SSH_T_PORT: ${{ secrets.TAISHAN_SSH_PORT }}
|
|
||||||
SSH_T_HOST: ${{ secrets.TAISHAN_SSH_HOST }}
|
SSH_T_HOST: ${{ secrets.TAISHAN_SSH_HOST }}
|
||||||
- name: Run script for aarch
|
- name: Run script for aarch
|
||||||
run: |
|
run: |
|
||||||
ssh -A -vvv $SSH_T_USER@$SSH_T_HOST -o IdentityFile="~/.ssh/builder.key" -o IdentitiesOnly=yes -o StrictHostKeyChecking=no \
|
ssh -A abuilder "ssh builder 'ls -a'"
|
||||||
"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 }}
|
|
Loading…
Reference in New Issue
Block a user