22# It's set as a secure environment variable in the build.yml file
33PACTICIPANT := "pactflow-example-consumer-python"
44GITHUB_WEBHOOK_UUID := "04510dc1-7f0a-4ed2-997d-114bfa86f8ad"
5- PACT_CLI ="docker run --rm -v ${PWD}:${PWD} -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -e PACT_BROKER_USERNAME -e PACT_BROKER_PASSWORD pactfoundation/pact-cli:latest"
65
76# Only deploy from master
87ifeq ($(GIT_BRANCH ) ,master)
@@ -30,7 +29,7 @@ fake_ci: .env
3029 make ci
3130
3231publish_pacts : .env
33- @ " ${PACT_CLI} " publish ${PWD} /pacts --consumer-app-version ${GIT_COMMIT} --branch ${GIT_BRANCH}
32+ pact broker publish ${PWD} /pacts --consumer-app-version ${GIT_COMMIT} --branch ${GIT_BRANCH}
3433
3534# # =====================
3635# # Build/test tasks
@@ -50,7 +49,7 @@ no_deploy:
5049
5150can_i_deploy : .env
5251 echo " can_i_deploy"
53- @ " ${PACT_CLI} " broker can-i-deploy \
52+ pact broker can-i-deploy \
5453 --pacticipant ${PACTICIPANT} \
5554 --version ${GIT_COMMIT} \
5655 --to-environment production \
@@ -61,7 +60,7 @@ deploy_app:
6160 @echo " Deploying to prod"
6261
6362record_deployment : .env
64- @ " ${PACT_CLI} " broker record-deployment --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --environment production
63+ pact broker record-deployment --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --environment production
6564
6665# # =====================
6766# # PactFlow set up tasks
@@ -80,8 +79,7 @@ create_github_token_secret:
8079# so that any PRs will get a status that shows what the status of
8180# the pact is.
8281create_or_update_github_webhook :
83- @" ${PACT_CLI} " \
84- broker create-or-update-webhook \
82+ pact broker create-or-update-webhook \
8583 ' https://api.github.com/repos/pactflow/example-consumer/statuses/$${pactbroker.consumerVersionNumber}' \
8684 --header ' Content-Type: application/json' ' Accept: application/vnd.github.v3+json' ' Authorization: token $${user.githubCommitStatusToken}' \
8785 --request POST \
@@ -125,4 +123,4 @@ venv:
125123 ln -sf ${CURDIR}/.venv ~/.pyenv/versions/${PROJECT}
126124
127125 @echo "\n$(green)Use it! (populate .python-version)$(sgr0)"
128- pyenv local ${PROJECT}
126+ pyenv local ${PROJECT}
0 commit comments