docs: readme, feat: jdbc connector #5
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: 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 & | |
while docker-compose ps | grep app | grep -q "Up"; do | |
sleep 10 | |
done | |
- name: Bring down Docker Compose | |
run: docker-compose down |