Tatiana
10/24/2022, 6:47 PMdocker run --rm \
-e PACT_BROKER_BASE_URL=<http://localhost:9292> \
pactfoundation/pact-cli:latest \
publish \
/Users/tatiana/projects/project_name/contract-tests/pacts \
--consumer-app-version fake-git-sha-for-demo-$(date +%s)
and I am getting the error:
Specified pact file '/Users/tatiana/projects/project_name/contract-tests/pacts' does not exist. This sometimes indicates one of the arguments has been specified with the wrong name and has been incorrectly identified as a file path.
So, my questions:
1. Where should I run the docker command from?
2. PACT_BROKER_USERNAME and PACT_BROKER_PASSWORD are mandatory or they can be ignored? I didn’t set up these env variables when I was running pactfoundation/pact-broker image.
Please point a right direction for me 🙏Tatiana
10/24/2022, 7:05 PMpact-broker publish /path/to/pacts/consumer-provider.json --consumer-app-version 1.0.0 --branch main --broker-base-url <https://test.pactflow.io> --broker-token SomeToken
But in this case I can’t get how to run/setup pact-broker, I tried just to run docker image as
docker run pactfoundation/pact-cli but it didn’t workYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Tatiana
10/27/2022, 8:57 PMYousaf Nabi (pactflow.io)