-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (37 loc) · 1.53 KB
/
service.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
43
44
45
46
47
48
49
50
51
52
53
54
name: Docker Compose Test000
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- run: docker-compose --version
- name: Setup Docker Compose
uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: '2.14.2'
- name: Start Docker containers
run: docker-compose -f ./docker-compose/docker-compose.yaml up -d
working-directory: ${{ github.workspace }}
- name: Check running containers
run: docker ps -a
- name: View Docker Compose Logs
run: docker-compose -f ./docker-compose/docker-compose.yaml logs && sleep 60
- name: Health check wallet-api
run: docker-compose -f ./docker-compose/docker-compose.yaml exec -T wallet-api sh -c "curl -f http://localhost:8080/health || exit 1"
# - name: Docker Health Check Verifier
# uses: stringbean/[email protected]
# with:
# container: docker-compose-verifier-api-1
# wait-time: 50
# require-status: running
# require-healthy: true
# - run: docker inspect -f '{{ .Mounts }}' $(docker ps -aqf "name=docker-compose-wallet-api-1")
#- name: Docker Health Check Issuer
# uses: stringbean/[email protected]
#with:
# container: docker-compose-issuer-api-1
#wait-time: 50
# require-status: running
# require-healthy: true