Is it possible to run "docker-compose push" or "docker-compose build --push"?
Closed this issue · 3 comments
I'd like to be able to use this workflow to build and then push the images to a registry.
I can do "docker-compose up --build" via flag, but are the others possible?
May I ask why you are trying to build your images using docker-compose?
My goal is to take an existing docker-compose.yml
that is used in the local development context and as simply as possible use that same file and then via docker-compse [build | push | build --push]
in Actions build and then push the images to our container registry.
My current reason for wanting this:
I think it means less "overhead" in reasoning about what developers do vs. what CI does to produce images. The paths to the Dockerfile(s) to build as well as the registry, image name, and tag can all be defined in the compose file, and then docker-compose
commands can do the rest so why not use it for "everything"?
I found an Action that is a basic "set up docker-compose in your CI environment" type of thing and it works and runs the commands I need.
Feel free to close this issue if you like.
Thank you for your help!