Skip to content

Merge remote-tracking branch 'origin/main' #9

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #9

Workflow file for this run

name: Restart Monitor
on:
push:
branches:
- main
jobs:
production:
runs-on: ubuntu-latest
steps:
- name: Setup SSH
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.SSH_PUB_KEY }}" > ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
ssh-keyscan -H ${{ secrets.HOSTNAME }} >> ~/.ssh/known_hosts
- name: restart server
run: |
ssh radxa@${{ secrets.HOSTNAME }} ./start-schermo.sh