cloud-build/.gitea/workflows/test.yaml
Надежда Федорова 5ec345a443
All checks were successful
Test cloud-images / building (push) Successful in 21s
Обновить .gitea/workflows/test.yaml
2024-09-25 14:58:33 +03:00

30 lines
791 B
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 abuilder
HostName $SSH_T_HOST
User $SSH_T_USER
IdentitiesOnly yes
IdentityFile ~/.ssh/builder.key
StrictHostKeyChecking no
END
env:
SSH_KEY: ${{ secrets.BUILDER_SSH_KEY }}
SSH_T_USER: ${{ secrets.TAISHAN_SSH_USER }}
SSH_T_HOST: ${{ secrets.TAISHAN_SSH_HOST }}
- name: Run script for aarch
run: |
ssh -A abuilder "ssh builder 'ls -a'"