Skip to content

Merge pull request #386 from ComputerScienceHouse/feature/mstrodl/sem… #184

Merge pull request #386 from ComputerScienceHouse/feature/mstrodl/sem…

Merge pull request #386 from ComputerScienceHouse/feature/mstrodl/sem… #184

Workflow file for this run

name: Docker
on:
push:
branches:
- develop
- master
# Run tests for any PRs.
pull_request:
branches:
- develop
- master
env:
IMAGE_NAME: conditional
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
if [ -f docker-compose.test.yml ]; then
docker-compose --file docker-compose.test.yml build
docker-compose --file docker-compose.test.yml run sut
else
docker build . --file Dockerfile
fi