Skip to content

Commit

Permalink
Merge pull request #349 from panoratech/docker-healthchecks
Browse files Browse the repository at this point in the history
🩺 Healthchecks for docker-compose files
  • Loading branch information
rflihxyz authored Apr 9, 2024
2 parents 064cbce + 3b01a3e commit d742286
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/healthcheck.docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docker-compose.dev.yml - Healthcheck

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
docker:
name: Run containers
runs-on: ubuntu-latest
env:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
DISTRIBUTION: ${{ secrets.DISTRIBUTION }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
REDIS_HOST: ${{ secrets.REDIS_HOST }}
NEXT_PUBLIC_BACKEND_DOMAIN: ${{ secrets.NEXT_PUBLIC_BACKEND_DOMAIN }}
NEXT_PUBLIC_MAGIC_LINK_DOMAIN: ${{ secrets.NEXT_PUBLIC_MAGIC_LINK_DOMAIN }}
NEXT_PUBLIC_STYTCH_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_STYTCH_PROJECT_ID }}
NEXT_PUBLIC_STYTCH_SECRET: ${{ secrets.NEXT_PUBLIC_STYTCH_SECRET }}
NEXT_PUBLIC_STYTCH_PROJECT_ENV: ${{ secrets.NEXT_PUBLIC_STYTCH_PROJECT_ENV }}
NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN: ${{ secrets.NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: isbang/[email protected]
with:
compose-file: "./docker-compose.dev.yml"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Docker containers
name: docker-compose.yml - Healthcheck

on:
push:
Expand Down

0 comments on commit d742286

Please sign in to comment.