validate entry
All checks were successful
update neo with compose files / validate the new configuration (push) Successful in 32s
update neo with compose files / deploy the config on the server (push) Successful in 6s

This commit is contained in:
Didier Slof 2023-04-30 21:10:17 +02:00
parent 0927fb6c5a
commit e78c791c35

View file

@ -2,7 +2,25 @@ name: update neo with compose files
run-name: update on ${{ github.sha }}
on: [push]
jobs:
update:
validate:
name: validate the new configuration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install packages
run: |
apt update -y
apt install -y docker-compose
- name: validate files
run: |
DC_ARGS=""
for file in docker-compose.*.yml; do
DC_ARGS="-f $file "
done
docker-compose $DC_ARGS config -q
deploy:
name: deploy the config on the server
needs: [validate]
runs-on: ubuntu-latest
steps:
- name: setup ssh
@ -32,4 +50,4 @@ jobs:
run: ssh staging srvctl -fn neo mm e
- 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 '${{ job.status }}: ${{ github.sha }}\n https://git.ixvd.net/${{ github.repository }}/actions/runs/${{ github.run_number }}' https://push.ixvd.net/${{ secrets.NTFY_TOPIC }}"