Надежда Федорова
5ec345a443
All checks were successful
Test cloud-images / building (push) Successful in 21s
30 lines
791 B
YAML
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'" |