Hey guys, I'm trying to publish my contracts to `<...
# pact-php
b
Hey guys, I'm trying to publish my contracts to
<https://test.pactflow.io>
as a test, but I got this error
PactBroker::Client::Hal::ErrorResponseReturned - Error making request to <https://test.pactflow.io> status=401
Does anyone know how to make it work to publish my contracts? I'm running this command inside my container:
Copy code
docker run --rm \
	-v /var/www/bff_freights/pacts:/pacts \
	-e <https://test.pactflow.io> \
	-e dXfltyFMgNOFZAxr8io9wJ37iUpY42M \
 		-e O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1 \
	pactfoundation/pact-cli:latest \
	publish \
	/pacts \
	--broker-base-url <https://test.pactflow.io> \
	--consumer-app-version 1.0.0
y
you need to name the env vars you are passing into docker PACT_BROKER_TOKEN=xyz
b
It worked, thanks a lot @Yousaf Nabi (pactflow.io)
chefkiss 2
y
pleasure dude