cloud-build/.gitea/workflows/test.yaml
Надежда Федорова ef9f642d31
Some checks failed
Test cloud-images / building (push) Failing after 22s
Обновить .gitea/workflows/test.yaml
2024-09-23 13:14:45 +03:00

42 lines
1.2 KiB
YAML

name: Test cloud-images
on:
push:
tags:
- 'test*'
jobs:
building:
runs-on: alt-sisyphus
steps:
- name: Configure ssh
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/builder.key
chmod 600 ~/.ssh/builder.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
User $SSH_T_USER
Port $SSH_T_PORT
IdentityFile ~/.ssh/builder.key
IdentitiesOnly yes
ProxyCommand ssh $SSH_T_USER@$SSH_T_HOST -o StrictHostKeyChecking="no" -W %h:%p
StrictHostKeyChecking no
END
env:
SSH_USER: ${{ secrets.BUILDER_SSH_USER }}
SSH_KEY: ${{ secrets.BUILDER_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 builder 'ls -a'
ssh cb_taishan 'ls -a'