Skip to content

Commit 377aa86

Browse files
committed
feat: update to use environments/record-deployment over tags
1 parent 8748fa1 commit 377aa86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fake_ci:
3939
make ci
4040

4141
publish_pacts:
42-
@"${PACT_CLI}" publish ${PWD}/pacts --consumer-app-version ${GIT_COMMIT} --tag ${GIT_BRANCH}
42+
@"${PACT_CLI}" publish ${PWD}/pacts --consumer-app-version ${GIT_COMMIT} --branch ${GIT_BRANCH}
4343

4444
## =====================
4545
## Build/test tasks
@@ -53,7 +53,7 @@ test:
5353
## Deploy tasks
5454
## =====================
5555

56-
deploy: deploy_app tag_as_prod
56+
deploy: deploy_app record_deployment
5757

5858
no_deploy:
5959
@echo "Not deploying as not on master branch"
@@ -62,15 +62,15 @@ can_i_deploy:
6262
@"${PACT_CLI}" broker can-i-deploy \
6363
--pacticipant ${PACTICIPANT} \
6464
--version ${GIT_COMMIT} \
65-
--to prod \
65+
--to-environment production \
6666
--retry-while-unknown 0 \
6767
--retry-interval 10
6868

6969
deploy_app:
7070
@echo "Deploying to prod"
7171

72-
tag_as_prod:
73-
@"${PACT_CLI}" broker create-version-tag --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --tag prod
72+
record_deployment: .env
73+
@"${PACT_CLI}" broker record-deployment --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --environment production
7474

7575
## =====================
7676
## PactFlow set up tasks

0 commit comments

Comments
 (0)