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 - name: validate files run: | set -e ls ${{github.workspace}} ls . DC_ARGS="" for file in docker-compose.*.yml; do 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 run: | set -e mkdir -p ~/.ssh/ echo "$SSH_KEY" > ~/.ssh/staging.key chmod 600 ~/.ssh/staging.key cat >>~/.ssh/config <