Fix failure condition not working? #2077
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 | |
- workflow | |
- workflowhub | |
- full-test-suite | |
- docker-compose-run-test | |
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 300 && docker ps -a | |
- name: Check app status | |
run: | | |
curl -o _curl_output.txt -s http://localhost:3000/statistics/application_status | |
\[ "`cat _curl_output.txt`" == "FAIRDOM-SEEK is running | search is enabled | 7 delayed jobs running" \] | |
- name: Check docker logs & curl output | |
if: failure() | |
run: | | |
docker compose --file docker-compose.yml --file docker-compose.build.yml logs | |
cat _curl_output.txt |