-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (48 loc) · 1.4 KB
/
docker-compose.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
version: '3.8'
services:
can_i_deploy:
image: pactfoundation/pact-cli:latest
environment:
- PACT_BROKER_BASE_URL
- PACT_BROKER_TOKEN
command: >
pact-broker can-i-deploy
--pacticipant ${PACTICIPANT}
--version ${VERSION}
--to-environment ${DEPLOYMENT_TARGET}
--retry-while-unknown 6
--retry-interval 10
volumes:
- ./:/${PWD}
record_deployment:
image: pactfoundation/pact-cli:latest
command: >
pact-broker record_deployment
--pacticipant ${PACTICIPANT}
--version ${VERSION}
--environment ${DEPLOYMENT_TARGET}
volumes:
- ./:/${PWD}
environment:
- PACT_BROKER_BASE_URL
- PACT_BROKER_TOKEN
publish_provider_contract:
image: pactfoundation/pact-cli:latest
working_dir: /app
environment:
- PACT_BROKER_BASE_URL=${PACT_BROKER_BASE_URL}
- PACT_BROKER_TOKEN=${PACT_BROKER_TOKEN}
- VERSION=${VERSION}
- GIT_BRANCH=${GIT_BRANCH}
volumes:
- ./:/app
command: >
/bin/sh -c "pactflow publish-provider-contract ${OAS_PATH}
--provider ${PACTICIPANT}
--provider-app-version $${VERSION}
--branch $${GIT_BRANCH}
--content-type application/yaml
--verification-exit-code=0
--verification-results ${REPORT_PATH}
--verification-results-content-type ${REPORT_FILE_CONTENT_TYPE}
--verifier ${VERIFIER_TOOL}"