This commit is contained in:
parent
5e906ab31d
commit
3109937bf7
1 changed files with 1 additions and 3 deletions
18
.github/workflows/update-server.yml
vendored
Normal file
18
.github/workflows/update-server.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: update neo with compose files
|
||||
run-name: update on ${{ github.sha }}
|
||||
on: [push]
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: mkdir ~/.ssh
|
||||
- name: create ssh profile
|
||||
run: echo "${{ secrets.AUTOMATION_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
- run: chmod 600 ~/.ssh/id_rsa
|
||||
- name: update git
|
||||
run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm u git
|
||||
- name: enforce new config
|
||||
run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm e
|
||||
- name: send ping to ntfy
|
||||
if: always()
|
||||
run: curl -d "${{ github.sha }} was executed with ${{ job.status }}" https://push.ixvd.net/${{ secrets.NTFY_TOPIC }}
|
Reference in a new issue