buildkite-plugins / docker-compose-buildkite-plugin

🐳⚡️ Run build scripts, and build + push images, w/ Docker Compose
MIT License
171 stars 138 forks source link

Add --skip-pull support to v2 run command #408

Closed eugeneotto closed 10 months ago

eugeneotto commented 10 months ago

The docker-compose plugin currently seems to ignore the skip-pull option. For example, this configuration:

steps:
  - command: bundle exec rubocop
    plugins:
      - docker-compose#v4.14.0:
          run: ruby
          skip-pull: true
          config: docker-compose.yml
          cli-version: 2

Results in a command that includes the --pull flag, something like this:

docker compose -f docker-compose.yml -p buildkite0123456789 build --pull ruby

This PR updates run.sh to fully support the skip-pull option. The same configuration as above now results in the --pull flag being omitted from the generated command:

docker compose -f docker-compose.yml -p buildkite0123456789 build ruby