final?
This commit is contained in:
parent
c42da07991
commit
1dac27b142
2 changed files with 16 additions and 3 deletions
17
.github/workflows/update-server.yml
vendored
17
.github/workflows/update-server.yml
vendored
|
@ -20,6 +20,7 @@ jobs:
|
|||
done
|
||||
echo $DC_ARGS
|
||||
docker-compose $DC_ARGS config -q
|
||||
|
||||
deploy:
|
||||
name: deploy the config on the server
|
||||
needs: [validate]
|
||||
|
@ -50,6 +51,18 @@ jobs:
|
|||
run: ssh staging srvctl -fn neo mm c
|
||||
- name: enforce new config
|
||||
run: ssh staging srvctl -fn neo mm e
|
||||
|
||||
notify:
|
||||
name: notify after actions
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: send ping to ntfy
|
||||
if: always()
|
||||
run: "curl -d '${{ job.status }}: ${{ github.sha }}\n https://git.ixvd.net/${{ github.repository }}/actions/runs/${{ github.run_number }}' https://push.ixvd.net/${{ secrets.NTFY_TOPIC }}"
|
||||
run: |
|
||||
curl -d @- https://push.ixvd.net/${{ secrets.NTFY_TOPIC }} <<EOF
|
||||
results for: ${{ github.sha }}
|
||||
validate: ${{ jobs.validate.status }}
|
||||
deploy: ${{ jobs.deploy.success }}
|
||||
|
||||
https://git.ixvd.net/${{ github.repository }}/actions/runs/${{ github.run_number }}
|
||||
EOF
|
||||
|
|
|
@ -25,7 +25,7 @@ services:
|
|||
- internal
|
||||
|
||||
flexo: # arch repo mirror
|
||||
image-sansklnklnaklsnkan: nroi/flexo:latest
|
||||
image: nroi/flexo:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- LETSENCRYPT_HOST=arch.neo.faulty.nl
|
||||
|
|
Reference in a new issue