New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docker-compose tag <service> <tag> and allow to push a specific tag by using push command #7669
Comments
|
docker-compose "extends" works for me |
|
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
I am still interested in this functionality. |
|
This issue has been automatically marked as not stale anymore due to the recent activity. |
|
I am still interested in this functionality. |
1 similar comment
|
I am still interested in this functionality. |
|
I am still interested in this functionality. |
|
We're currently working on adding some capabilities to the build step at the Compose specification level (like specify tags), I hope we can propose something soon and then we'll be able to implement the changes into Compose (v2) |
|
any update about this feature? |
|
Support of tags during build step has been added to the |
|
Cool! This looks like a useful and related feature, but I don't think this addresses the use case described. |
Since they don't plan to support the feature added in #9051, I accomplish the same thing in a more generic environment than Jenkins. docker compose images | awk '(NR>1) { print $2 }' > image_names
export OLD_VERSION=foo
export VERSION=bar
cat image_names | xargs -I{} docker tag {}:$OLD_VERSION {}:$VERSION
cat image_names | xargs -I{} docker push -a {} I would really love it if |
Jokero commentedAug 14, 2020
Is your feature request related to a problem? Please describe.
I have several applications with their own Dockerfile within one project and in order to build, launch and test them locally I'm using docker-compose.
It seems like a good idea to reuse docker-compose commands to build, test and push images to registry from CI, so I decided to use them in Jenkinsfile. Project has package.json file with current version which is incremented during CI build. This version is used as tag for docker images.
docker-compose.yaml:
The current CI pipeline looks as follows:
This pipeline works but I have to read compose file to get image that will be used in "docker tag" and "docker push" commands.
Describe the solution you'd like
I'd like to have a new command:
And I want "push" command to support tag postfix:
Describe alternatives you've considered
Using "docker tag" and "docker push" explicitly but for that I need to read images from docker-compose.yaml file
The text was updated successfully, but these errors were encountered: