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
|
done
|
||||||
echo $DC_ARGS
|
echo $DC_ARGS
|
||||||
docker-compose $DC_ARGS config -q
|
docker-compose $DC_ARGS config -q
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: deploy the config on the server
|
name: deploy the config on the server
|
||||||
needs: [validate]
|
needs: [validate]
|
||||||
|
@ -50,6 +51,18 @@ jobs:
|
||||||
run: ssh staging srvctl -fn neo mm c
|
run: ssh staging srvctl -fn neo mm c
|
||||||
- name: enforce new config
|
- name: enforce new config
|
||||||
run: ssh staging srvctl -fn neo mm e
|
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
|
- name: send ping to ntfy
|
||||||
if: always()
|
run: |
|
||||||
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 }}"
|
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
|
- internal
|
||||||
|
|
||||||
flexo: # arch repo mirror
|
flexo: # arch repo mirror
|
||||||
image-sansklnklnaklsnkan: nroi/flexo:latest
|
image: nroi/flexo:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- LETSENCRYPT_HOST=arch.neo.faulty.nl
|
- LETSENCRYPT_HOST=arch.neo.faulty.nl
|
||||||
|
|
Reference in a new issue