can't get validation working
This commit is contained in:
parent
d3a31eb5d4
commit
94d869a37e
1 changed files with 22 additions and 23 deletions
45
.github/workflows/update-server.yml
vendored
45
.github/workflows/update-server.yml
vendored
|
@ -2,32 +2,31 @@ 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:
|
# validate:
|
||||||
name: validate the new configuration
|
# name: validate the new configuration
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: install packages
|
# - name: install packages
|
||||||
run: |
|
# run: |
|
||||||
apt update -y
|
# apt update -y
|
||||||
apt install -y docker-compose
|
# apt install -y docker-compose
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
with:
|
# with:
|
||||||
submodules: true
|
# submodules: true
|
||||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ssh-strict: false
|
# ssh-strict: false
|
||||||
- name: validate files
|
# - name: validate files
|
||||||
run: |
|
# run: |
|
||||||
set -e
|
# set -e
|
||||||
DC_ARGS=""
|
# DC_ARGS=""
|
||||||
for file in docker-compose.*.yml; do
|
# for file in docker-compose.*.yml; do
|
||||||
DC_ARGS="$DC_ARGS -f $file"
|
# DC_ARGS="$DC_ARGS -f $file"
|
||||||
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]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: setup ssh
|
- name: setup ssh
|
||||||
|
|
Reference in a new issue