Hi, I’ve a basic question. If I use `docker pull p...
# pact-broker
z
Hi, I’ve a basic question. If I use
docker pull pactfoundation/pact-cli:latest
in the ci pipeline, then do I still need to run docker command while running can-i-deploy step? Or can we just use
pact-broker can-i-deploy .....so on..
Copy code
steps:
      - name: Pull Pact CLI Docker image
        run: docker pull pactfoundation/pact-cli:latest
      - name: Can I Deploy to Staging
        run: |
          docker run --rm \
          -e PACT_BROKER_BASE_URL \
          -e PACT_BROKER_TOKEN \
          pactfoundation/pact-cli:latest \
          broker can-i-deploy \
          --pacticipant my_serv \
          --version ${{ github.sha }} \
          --to staging
m
you still need to run it with docker
Docker isn’t just a distribution mechanism to download things, it’s a runtime that you must use with it
If you don’t want to use Docker, the underlying CLI can be downloaded independently
z
Got it, thanks 🙂
🙌 1