Skip to content

chore: workflow fix

chore: workflow fix #4

Workflow file for this run

name: Run Docker Compose
on:
push:
branches:
- main
jobs:
run-docker-compose:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Build and start Docker Compose in the background
run: |
docker-compose up --build -d
- name: Stream logs and wait for app to finish
run: |
docker-compose logs -f app &
pid=$!
while docker-compose ps | grep app | grep -q "Up"; do
sleep 10
done
kill $pid
- name: Bring down Docker Compose
run: docker-compose down