-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.test.yml
36 lines (34 loc) · 1.08 KB
/
docker-compose.test.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
services:
app:
image: app:latest
build:
context: .
target: app
x-bake:
cache-from: type=gha,scope=$GITHUB_REF_NAME-app
cache-to: type=gha,scope=$GITHUB_REF_NAME-app,mode=max
volumes:
- ./jwks-private-key.pem:/etc/local-jwks-server/key.pem
test-e2e:
image: test-e2e:latest
build:
context: .
target: test-e2e
x-bake:
cache-from: type=gha,scope=$GITHUB_REF_NAME-test-e2e
cache-to: type=gha,scope=$GITHUB_REF_NAME-test-e2e,mode=max
environment:
API_URL: http://app:8080
depends_on:
app:
condition: service_healthy
test-unit:
image: test-unit:latest
volumes:
- ./coverage:/app/coverage
build:
context: .
target: test-unit
x-bake:
cache-from: type=gha,scope=$GITHUB_REF_NAME-test-unit
cache-to: type=gha,scope=$GITHUB_REF_NAME-test-unit,mode=max