-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.22 KB
/
compose-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Docker Compose Build
on:
push:
branches:
- main
- develop
pull_request:
branches: [ develop ]
jobs:
docker-compose:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker Compose
run: docker compose build --no-cache
- name: Start Docker Compose
run: docker compose up -d
# ToDo
# - name: Health Check AuthService
# run: |
# echo "Checking health..."
# for i in {1..10}; do
# curl --fail http://localhost:8000/auth/health && break || sleep 5
# curl --fail http://gateway:8000/auth/health && break || sleep 5
# done
# curl --fail http://localhost:8000/auth/health || exit 1
#
# - name: Health Check PostService
# run: |
# echo "Checking health..."
# for i in {1..10}; do
# curl --fail http://localhost:8000/post/health && break || sleep 5
# curl --fail http://gateway:8000/post/health && break || sleep 5
# done
# curl --fail http://localhost:8000/post/health || exit 1