Closed jamesone closed 7 months ago
This is indeed the current behaviour and I agree that it is confusing and counter-intuitive.
Similar things also occur in other situations. For example:
run
option, in some conditions there will also be an attempted buildrun
and push
, sometimes it will be attempted to be built twice (see #309)run
and push
stages, configuration options are either named differently or not used at allWe are currently thinking of changes to simplify, clarify and unify those behaviours. As it is a huge change, it will be backwards incompatible and be a major release of this plugin. We hope to have something - if time allows - in the next few months
@toote thanks for the update.
RE "This is indeed the current behaviour and I agree that it is confusing and counter-intuitive."
Should we change this behaviour? I don't suspect this is a "huge" change, however, I don't know the repo. Or is this a big change and would be apart of the next major release.
@jamesone feel free to open a PR with whatever changes you see fit. We will be more than happy to review it and iterate on it as necessary
This change will be part of the next major release that will include #416 and #418
Is this meant to be the default behaviour? I expect it only to push if I define the
push
configuration?Here is my config:
After building successfully, it goes ahead and pushes.
I would expect it only to push if the push array is present, unless I'm missing something?
I looked at this merged PR: https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/pull/224/files - and the code suggests that it will only push, if the push array present. Main branch still contains this same logic