can't get validation working
All checks were successful
update neo with compose files / deploy the config on the server (push) Successful in 5s
update neo with compose files / notify after actions (push) Successful in 1s

This commit is contained in:
Didier Slof 2023-04-30 21:51:56 +02:00
parent d3a31eb5d4
commit 94d869a37e

View file

@ -2,32 +2,31 @@ name: update neo with compose files
run-name: update on ${{ github.sha }}
on: [push]
jobs:
validate:
name: validate the new configuration
runs-on: ubuntu-latest
steps:
- name: install packages
run: |
apt update -y
apt install -y docker-compose
- uses: actions/checkout@v3
with:
submodules: true
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-strict: false
- name: validate files
run: |
set -e
DC_ARGS=""
for file in docker-compose.*.yml; do
DC_ARGS="$DC_ARGS -f $file"
done
echo $DC_ARGS
docker-compose $DC_ARGS config -q
# validate:
# name: validate the new configuration
# runs-on: ubuntu-latest
# steps:
# - name: install packages
# run: |
# apt update -y
# apt install -y docker-compose
# - uses: actions/checkout@v3
# with:
# submodules: true
# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
# ssh-strict: false
# - name: validate files
# run: |
# set -e
# DC_ARGS=""
# for file in docker-compose.*.yml; do
# DC_ARGS="$DC_ARGS -f $file"
# done
# echo $DC_ARGS
# docker-compose $DC_ARGS config -q
deploy:
name: deploy the config on the server
needs: [validate]
runs-on: ubuntu-latest
steps:
- name: setup ssh