Skip to content

more build info on qgis server #37

more build info on qgis server

more build info on qgis server #37

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