docker-compose-buildkite-plugin
docker-compose-buildkite-plugin copied to clipboard
`secrets` option fails with `unknown flag: --secret`
When specifying the secrets option the build fails:
$ docker compose -f .buildkite/docker-compose.yml -p buildkite[redacted] -f docker-compose.buildkite-[redacted]-override.yml build --pull --secret id=MY_SECRET --build-arg BUILDKIT_INLINE_CACHE=1 app
unknown flag: --secret
🚨 Error: The command exited with status 16
user command error: The plugin docker-compose command hook exited with status 16
This is because docker compose build doesn't have a --secrets option. Either I'm missing something obvious or I can't see how this ever worked :slightly_smiling_face:
Secrets can be used with this plugin but they need to be specified in the compose file. Trying to use the secrets option in my pipeline file sent me on a wild goose chase :turkey: I think the option should be removed if it doesn't work and is misleading.