validate entry
This commit is contained in:
parent
0927fb6c5a
commit
e78c791c35
1 changed files with 20 additions and 2 deletions
20
.github/workflows/update-server.yml
vendored
20
.github/workflows/update-server.yml
vendored
|
@ -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
|
||||
|
|
Reference in a new issue