From 43dfdda212996f9ba4b6ff2a056c5f30dec0c15a Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Tue, 11 Jul 2023 14:29:26 +0100 Subject: [PATCH] feat: publish with branch, rather than tag --- Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index df3b70d..40505df 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ fake_ci: .env make ci publish_pacts: .env - @"${PACT_CLI}" publish ${PWD}/pacts --consumer-app-version ${GIT_COMMIT} --tag ${GIT_BRANCH} + @"${PACT_CLI}" publish ${PWD}/pacts --consumer-app-version ${GIT_COMMIT} --branch ${GIT_BRANCH} ## ===================== ## Build/test tasks @@ -43,7 +43,7 @@ test: .env ## Deploy tasks ## ===================== -deploy: deploy_app tag record_deployment +deploy: deploy_app record_deployment no_deploy: @echo "Not deploying as not on master branch" @@ -60,13 +60,6 @@ can_i_deploy: .env deploy_app: @echo "Deploying to prod" -tag: .env - @"${PACT_CLI}" broker create-version-tag \ - --pacticipant ${PACTICIPANT} \ - --version ${GIT_COMMIT} \ - --auto-create-version \ - --tag ${GIT_BRANCH} - record_deployment: .env @"${PACT_CLI}" broker record-deployment --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --environment production