From 548af28758fae48e03cbfabb33d3629a2d945bec Mon Sep 17 00:00:00 2001 From: Dmitriy Ivolgin Date: Tue, 17 Sep 2024 08:07:14 -0700 Subject: [PATCH] Run record-release command for pact (#4900) --- .github/workflows/release.yaml | 1 + Makefile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 06743c5280..a60bd63f4a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -298,6 +298,7 @@ jobs: PACT_BROKER_BASE_URL: ${{ vars.PACT_BROKER_BASE_URL }} PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN }} PACT_PUBLISH_CONTRACT: true + PACT_VERSION: ${{ github.sha }} GIT_TAG: ${{ needs.generate-tag.outputs.tag }} run: | set -x diff --git a/Makefile b/Makefile index 5ae97069f6..84c51c5a77 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,12 @@ pact-consumer: pact-broker publish ./pacts/consumer \ --auto-detect-version-properties \ --consumer-app-version ${GIT_TAG} || true; \ + + pact-broker record-release \ + --pacticipant kots \ + --version ${PACT_VERSION} \ + --environment production \ + --verbose fi .PHONY: e2e