more build info on qgis server #37
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: Build djakart Docker | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_and_run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: WEBAPP build | |
run: docker build --build-context webapp_root=./webapp -t enricofer/djakart:latest ./build_webapp | |
- name: QGIS build | |
run: docker build -t enricofer/qgis-server:latest ./build_qgis | |
- name: LIST LOCAL IMAGES | |
run: docker image ls | |
- name: DEPLOY | |
run: docker compose up -d | |
- name: CHECK HEALTH | |
run: timeout 240s sh -c 'until docker ps | grep djakart-webapp_djakart | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done' | |
- name: LIST CONTAINERS | |
run: docker ps | |
- name: STOP | |
run: docker compose down | |