Skip to content

Conversation

@eugeneotto
Copy link

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

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
```
Copy link
Contributor

@pzeballos pzeballos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! thanks!

@pzeballos pzeballos merged commit 1e096e4 into buildkite-plugins:master Oct 12, 2023
@eugeneotto eugeneotto deleted the add-v2-support-for-skip-pull-option branch October 12, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants