Releases: buildkite-plugins/docker-compose-buildkite-plugin
v3.1.0 (🏃♀️ Run Lola Run)
Added
- Allow
push
to be combined withbuild
orrun
(#224) @matthewd - Output status of the containers on exit (#212) @pecigonzalo
Fixed
- Fix shellcheck errors (#226) @lox
- Handle single container and
--rm
configuration (#222) @pecigonzalo
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v3.0.3:
+ docker-compose#v3.1.0:
run: app
v3.0.3 (🏙 Big City Small Updates)
What's Changed
- Add another ansi clearer line after a docker-compose pull (#218) @lox
- Ensure docker_compose_config_version only matches "version: ..." (#219) @foygl
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v3.0.2:
+ docker-compose#v3.0.3:
run: app
v3.0.2 (🍃 April Breeze)
Fixed
- Update documented version in readme (#214) @gerrywastaken
- Check if prebuilt image exists before doing "get" (#216) @pauldthomson
Changed
- Add a new
rm
option (default totrue
) for runs (#211) @pecigonzalo
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v3.0.1:
+ docker-compose#v3.0.2:
run: app
v3.0.1 (🦀 Salty Crab)
v3.0.0 (🐚 Sea Shells)
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
- Add command parameter with support for array-based arguments (#186) @lox
- Detect windows and set sensible defaults (#190) @lox
- Correctly handle . in docker compose service names. (#192) @robholland
- Cleanup dependency and linked service output (#196) @lox
- Add an extra test for multi-line commands (#200) @lox
- Add skip checkout option (#202) @lox
- Add build aliases (#201) @lox
v2.6.0 (🎄 Holiday Cheer)
Added
- Allow multiple cache images for one service (#171) @dreyks
- Add
use-aliases
configuration option (#182) @snmaynard - Add
user
configuration option (#183) @TheDen
Fixed
- Support cache_from directive in composefile 2.2+ (#163) @lox
- Move cleanup to a pre-exit hook to cleanup cancelled builds (#172) @lox
- Push stderr to log file as well instead of outputting to terminal (#176) @GreyKn
Other Changes
- Replace eval with xargs for parsing BUILDKITE_COMMAND (#165) @lox
- Update buildkite/plugin-tester:latest Docker digest to 38c4bc (#168) @renovate[bot]
- Remove incorrect reference to cleanup function (#175) @lox
- Update buildkite plugin shellcheck to v1.1.2 (#178) @renovate[bot]
- Use
label
overname
for build step config in examples (#181) @petervandoros
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v2.5.1:
+ docker-compose#v2.6.0:
run: app
v2.5.1 (🛁 Bath Time)
Fixed
- Fix
cache-from
errors with service containing hyphens (#160) @toolmantim
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v2.5.0:
+ docker-compose#v2.5.1:
run: app
v2.5.0 (✈️ Your Flight Has Been Cancelled)
v2.4.1 (⛰ Vail)
Fixed
- Fix relative paths with the
volume
option #156 (@toolmantim)
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v2.4.0:
+ docker-compose#v2.4.1:
run: app
v2.4.0 (🔵 Blueberry Muffin)
Added
- Added
volume
option for adding volumes to run commands (#149) @clee - Added
workdir
option for setting the working dir of run comments (#150) @asford - Added
ansi
option for disabling ANSI output of run commands (#153) @gugahoi
Upgrading
To upgrade, update your pipeline.yml
files:
steps:
- command: test.sh
plugins:
- docker-compose#v2.3.0:
+ docker-compose#v2.4.0:
run: app