Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 25, 2019

This PR contains the following updates:

Package Update Change References
docker-compose major v2.6.0 -> v3.0.0 source

Release Notes

buildkite-plugins/docker-compose-buildkite-plugin

v3.0.0

Compare Source

This major release includes some breaking changes (along with some neat new things)! ✨

🆙 Upgrading

To upgrade your steps from v2 of the plugin:

  • If you were using shell invocations in your commands (e.g /bin/bash -c "echo hello") you can remove them (e.g. echo blah)
  • Specifying shell as a string is no longer supported, and needs to be changed to use the array syntax.

🐢 Improved Shell Handling (New)

This plugin can now run multi-command steps by default. It does this by running commands via a shell—the default shell is /bin/sh -e -c for *nix and CMD.EXE /c for Windows.

steps:
  - command:
      - "yarn install"
      - "yarn run test"
    plugins:
      - docker-compose#v3.0.0:
          run: "app"

This also means if your commands include bash-ism's, like make && make publish, this will also just work, instead of failing with a cryptic Docker failure message.

If you want to skip the shell—for example if you have a custom entrypoint in your image—we've added a command option (vs the command at the Buildkite step level) that takes an array of parameters. This is handy for shell-less, single binary images, and allows for very precise control of what arguments are passed to the docker-compose run invocation.

For example:

steps:
  - plugins:
      docker-compose#v3.0.0:
        run: "app"
        command: ["s3", "sync", "s3://my-bucket/dist/", "/app/dist"]

Specifying shell as a string is no longer supported. You need to use the array syntax now.

🏆 Automatic Windows shell support (New)

Windows Docker images are now better supported, with the new shell behaviour auto-detecting Windows and setting the shell option to CMD.exe /c. To use PowerShell, set the shell option to [ "powershell", "-Command" ].

Optionally skip checkout

If you have a prebuilt image, you often don't need a checkout on the agent. You can skip this now:

steps:
  - plugins:
      docker-compose#v3.0.0:
        run: "app"
        skip-checkout: true

Full Changelog


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@toolmantim toolmantim merged commit 3bcefc3 into master Feb 25, 2019
@renovate renovate bot deleted the renovate/buildkite-docker-compose-3.x branch February 25, 2019 02:41
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.

3 participants