Skip to content

Nginx dynamic configuration #3

Nginx dynamic configuration

Nginx dynamic configuration #3

Workflow file for this run

on: pull_request
name: Review
jobs:
validate-compose:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [ 'drupal-7', 'drupal-8' ]
name: Validate compose (${{ matrix.version }})
steps:
- uses: actions/checkout@master
- name: Validate local docker compose files
run: |
DC=$(COMPOSE_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.yml config --quiet)
[ -z "$DC" ] && exit 0 || exit 1
- name: Validate server docker compose files
run: |
DC=$(COMPOSE_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml config --quiet)
[ -z "$DC" ] && exit 0 || exit 1
DC=$(COMPOSE_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml --file templates/${{ matrix.version }}/docker-compose.dev.yml config --quiet)
[ -z "$DC" ] && exit 0 || exit 1
DC=$(COMPOSE_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml --file templates/${{ matrix.version }}/docker-compose.redirect.yml config --quiet)
[ -z "$DC" ] && exit 0 || exit 1