From 7bd0033e1037d68b9e290f1d61ed76f5db15880e Mon Sep 17 00:00:00 2001 From: Didier Date: Sat, 29 Apr 2023 20:56:16 +0200 Subject: [PATCH] add workflow --- .gitea/workflows/update-server.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitea/workflows/update-server.yml diff --git a/.gitea/workflows/update-server.yml b/.gitea/workflows/update-server.yml new file mode 100644 index 0000000..ffd9282 --- /dev/null +++ b/.gitea/workflows/update-server.yml @@ -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 \ No newline at end of file