32 lines
741 B
YAML
32 lines
741 B
YAML
name: Test Docker Compose
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- bt
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
jobs:
|
|
test-docker-compose:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout and verify compose stack
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
git clone "http://172.17.0.1:3000/${{ github.repository }}.git" .
|
|
git checkout "${{ github.sha }}"
|
|
|
|
docker compose build
|
|
docker compose down -v --remove-orphans || true
|
|
docker compose up -d --wait backend frontend adminer
|
|
|
|
curl -fsS http://localhost:8000/api/v1/utils/health-check
|
|
curl -fsS http://localhost:5173
|
|
|
|
docker compose down -v --remove-orphans || true
|