Issue 82 (#83) #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Compose Actions Workflow | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create python-base image | |
run: docker build -q -t broker/python-base -f images/restapi/Dockerfile . | |
- name: Create ttn-decoder image | |
run: docker build -q -t broker/ttn_decoder -f images/ttn_decoder/Dockerfile . | |
- name: Create webapp image | |
run: docker build -q -t broker/mgmt-app -f src/www/Dockerfile . | |
- name: Build the stack | |
run: docker compose -p test -f compose/docker-compose.yml -f compose/test/test.yml up -d | |
- name: Unit tests | |
run: docker exec test-x-1 pytest |