pls work
Some checks failed
update neo with compose files / update (push) Failing after 3s

This commit is contained in:
Didier Slof 2023-04-29 21:31:42 +02:00
parent a96a4fb66b
commit 3f34eef31c

View file

@ -5,15 +5,28 @@ jobs:
update: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: apt update -y && apt install -y openssh-client - name: setup ssh
- run: mkdir ~/.ssh run: |
- name: create ssh profile mkdir -p ~/.ssh/
run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa echo "$SSH_KEY" > ~/.ssh/staging.key
- run: chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/staging.key
cat >>~/.ssh/config <<END
Host staging
HostName $SSH_HOST
Port $SSH_PORT
User $SSH_USER
IdentityFile ~/.ssh/staging.key
StrictHostKeyChecking no
END
env:
SSH_HOST: neo.ixvd.net
SSH_PORT: ${{ secrets.SSH_PORT }}
SSH_USER: automation
SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: update git - name: update git
run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm u git run: ssh staging srvctl -fn neo mm u git
- name: enforce new config - name: enforce new config
run: ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} automation@neo.ixvd.net srvctl -fn neo mm e run: ssh staging srvctl -fn neo mm e
- name: send ping to ntfy - name: send ping to ntfy
if: always() if: always()
run: "curl -d '${{ job.status }}: ${{ github.repositoryUrl }} @ ${{ github.sha }}' https://push.ixvd.net/${{ secrets.NTFY_TOPIC }}" run: "curl -d '${{ job.status }}: ${{ github.repositoryUrl }} @ ${{ github.sha }}' https://push.ixvd.net/${{ secrets.NTFY_TOPIC }}"