Open dartartem opened 4 years ago
./gradlew composeBuild composePush
Why would this work? You haven't told it what docker-compose file to use!
The above commit implements the correct image publishing logic: eg. only publish Docker images for release branches.
@cer
Why would this work? You haven't told it what docker-compose file to use!
So, besides a separate docker compose entries for testing, we can use global configuration for publishing, defining all compose files, right? For some reason, I did not think about it.
There is no such info in the docs, however, I made an experiment. I ran
./gradlew mysqlComposeBuild
with no images defined, build passed. Then I define an image and got access denied error:yes, but only inside specified or default compose file:
pushServices = [] // which services should be pushed, if not defined then upon
composePushtask all defined services in compose file will be pushed (default behaviour)
It seems, it does not work:
./gradlew composeBuild composePush
I am preparing PR with the fixes.