You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to re-tag a docker image that got built with multiple other repo/image:tag combos. Personally, I don't need to push all these different images to a registry, it's enough for me to just be able to define additional names for the image. However, I'd imagine that being able to push these multiple names would be beneficial to others.
In my case, this is needed because a component (module) got renamed and we want to publish the docker image under the new name but also want to publish under the legacy name for backwards compatibility. There is no differences in configuration, we just want the exact same image published under two different names.
What I've tried
I've tried defining multiple <image> tags in my project but I keep ending up with one image that works and another one that is essentially empty (~4 MB in size).
My setup is that I have a parent project with the following configuration:
But even if defining multiple <image> blocks would produce two valid images, my guess is that they would not be the same image (that is, the second image would not be a re-tag of the first one). So even if this "worked", I would actually rather prefer being able to do it with "image name aliases".
What I would like to have
In my child project, I would like to be able to define "aliases" for the image repo/name:tag. The tag <alias> is already used so we couldn't use that, but maybe something like <image_aliases> (or whatever).
So the config for the child project would look something like this:
And this would result in the image being built as is currently being done but then the image would additionally be tagged with ${docker.repository}/hono-service-command-router:%v and some.other.repo/some-other-name:v7.7.7.
Am I way out there with this? Does this not make any sense maybe?
Description
I'd like to be able to re-tag a docker image that got built with multiple other
repo/image:tag
combos. Personally, I don't need to push all these different images to a registry, it's enough for me to just be able to define additional names for the image. However, I'd imagine that being able to push these multiple names would be beneficial to others.In my case, this is needed because a component (module) got renamed and we want to publish the docker image under the new name but also want to publish under the legacy name for backwards compatibility. There is no differences in configuration, we just want the exact same image published under two different names.
What I've tried
I've tried defining multiple
<image>
tags in my project but I keep ending up with one image that works and another one that is essentially empty (~4 MB in size).My setup is that I have a parent project with the following configuration:
And then I have a child project with the following config:
But even if defining multiple
<image>
blocks would produce two valid images, my guess is that they would not be the same image (that is, the second image would not be a re-tag of the first one). So even if this "worked", I would actually rather prefer being able to do it with "image name aliases".What I would like to have
In my child project, I would like to be able to define "aliases" for the image
repo/name:tag
. The tag<alias>
is already used so we couldn't use that, but maybe something like<image_aliases>
(or whatever).So the config for the child project would look something like this:
And this would result in the image being built as is currently being done but then the image would additionally be tagged with
${docker.repository}/hono-service-command-router:%v
andsome.other.repo/some-other-name:v7.7.7
.Am I way out there with this? Does this not make any sense maybe?
Similar issues
The text was updated successfully, but these errors were encountered: