Test docker compose setup builds & runs #2080
Workflow file for this run
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: Test Docker Image Build & Deploy | |
on: | |
push: | |
branches: | |
- main | |
- workflowhub | |
- full-test-suite | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create volumes | |
run: | | |
docker volume create --name=seek-filestore | |
docker volume create --name=seek-mysql-db | |
docker volume create --name=seek-solr-data | |
docker volume create --name=seek-cache | |
- name: Build and run the Docker containers | |
run: docker compose --file docker-compose.yml --file docker-compose.build.yml up --build --detach --wait | |
continue-on-error: true | |
- name: Wait and check containers | |
run: sleep 120 && docker ps -a | |
continue-on-error: true | |
- name: Check app status | |
run: ruby script/check_deployment.rb |