pactest/publish.sh
Sander Hautvast 9e8b0de006
Some checks failed
test / Test completion check (push) Has been cancelled
test / test (20, macos-latest) (push) Has been cancelled
test / test (20, ubuntu-latest) (push) Has been cancelled
test / test (20, windows-latest) (push) Has been cancelled
test / test (22, macos-latest) (push) Has been cancelled
test / test (22, ubuntu-latest) (push) Has been cancelled
test / test (22, windows-latest) (push) Has been cancelled
test / test (24, macos-latest) (push) Has been cancelled
test / test (24, ubuntu-latest) (push) Has been cancelled
test / test (24, windows-latest) (push) Has been cancelled
Initial commit
2025-09-03 11:48:59 +02:00

15 lines
No EOL
639 B
Bash
Executable file

#!/bin/bash
GIT_COMMIT=$(git rev-parse HEAD)
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
pact-broker publish pacts \
--branch $GIT_BRANCH \
--consumer-app-version $GIT_COMMIT \
--broker-base-url ${PACT_BROKER_BASE_URL} \
--broker-username ${PACT_BROKER_USERNAME} \
--broker-password ${PACT_BROKER_PASSWORD}
echo "Pact contract publishing complete!"
echo "Head over to ${PACT_BROKER_BASE_URL}/pacts/provider/GettingStartedOrderApi/consumer/GettingStartedOrderWeb/version/$GIT_COMMIT and login with"
echo "=> Username: ${PACT_BROKER_USERNAME}"
echo "=> Password: ${PACT_BROKER_PASSWORD}"
echo "to see your published contracts."