add validation
This commit is contained in:
parent
70876e5a3b
commit
4ac9781ce6
1 changed files with 16 additions and 0 deletions
16
.github/workflows/update-server.yml
vendored
16
.github/workflows/update-server.yml
vendored
|
@ -2,7 +2,23 @@ name: update neo with compose files
|
||||||
run-name: update on ${{ github.sha }}
|
run-name: update on ${{ github.sha }}
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
|
validate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: install docker-compose
|
||||||
|
run: |
|
||||||
|
apt update -y
|
||||||
|
apt install docker-compose
|
||||||
|
- name: check docker-compose
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}
|
||||||
|
DC_ARGS=""
|
||||||
|
for $f in docker-compose.*.yml; do
|
||||||
|
DC_ARGS="-f $f"
|
||||||
|
done
|
||||||
|
docker-compose $DC_ARGS config
|
||||||
update:
|
update:
|
||||||
|
needs: [validate]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: setup ssh
|
- name: setup ssh
|
||||||
|
|
Reference in a new issue