Hey - I am trying to run can-i-deploy in my ADO pi...
# pact-broker
j
Hey - I am trying to run can-i-deploy in my ADO pipeline using the Docker container version of the CLI, however, it is telling me that I am setting both the
--version
and
--latest
flags, which I am not (that I know of). This is my pipeline code:
Copy code
- script: |
        docker run --rm \
          -e PACT_BROKER_BASE_URL=$(PACT_BROKER_BASE_URL) \
          -e PACT_BROKER_TOKEN=$(PACT_BROKER_TOKEN) \
          pactfoundation/pact-cli:latest \
          broker can-i-deploy \
          --pacticipant $(PACTICIPANT_NAME) \
          --version 0.0.test \
          --to-environment test \
          --branch $(Build.SourceBranchName) 
      displayName: 'can-i-deploy Test'
What am I doing wrong? Where is
--latest
being set?