| 1 | name: reusable docker tests |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | inputs: |
| 6 | branch: |
| 7 | type: string |
| 8 | required: false |
| 9 | |
| 10 | jobs: |
| 11 | docker: |
| 12 | runs-on: ubuntu-24.04 |
| 13 | steps: |
| 14 | - uses: actions/checkout@v4 |
| 15 | with: |
| 16 | ref: ${{ inputs.branch }} |
| 17 | - uses: docker/setup-compose-action@v1 |
| 18 | with: |
| 19 | version: latest |
| 20 | - name: Install system dependencies |
| 21 | run: | |
| 22 | sudo apt install -yq python3-pip python3-setuptools-scm |
| 23 | - name: Build docker images |
| 24 | run: | |
| 25 | ./dockerfiles/build.sh |
| 26 | docker compose -f dockerfiles/staging/docker-compose.yml up --exit-code-from client client || (docker compose -f dockerfiles/staging/docker-compose.yml logs --timestamps && false) |
| 27 | docker compose -f dockerfiles/staging/docker-compose.yml down |
| 28 | - name: Show docker images |
| 29 | run: | |
| 30 | docker images |