add workflow
This commit is contained in:
parent
ce71b307aa
commit
7bd0033e10
1 changed files with 15 additions and 0 deletions
15
.gitea/workflows/update-server.yml
Normal file
15
.gitea/workflows/update-server.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
name: update neo with compose files
|
||||||
|
run-name: update on ${{ github.sha }}
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: alpine-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 -to StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm u git
|
||||||
|
- name: enforce new config
|
||||||
|
run: ssh -to StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm e
|
Reference in a new issue