Allow pushing multiple tags to registries
See original GitHub issueDescription of the feature: Currently, in order to push multiple tags (of the same image) you must call jib multiple times. This is common with docker where you have the latest tag and version specific tags. I suggest there be a way to specify multiple tags within jib’s configuration.
Expected behavior:
jib {
to {
image = ["repo/name:tag", "repo/name:tag2", "repo2/name2:tag3"]
}
}
Jib would handle this by building the container once and then (preferably in parallel) push the container with the given tags.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:21 (12 by maintainers)
Top Results From Across the Web
docker - Is it possible for image to have multiple tags?
looks like pushing the local image name assumes dockerhub - I'm using Docker desktop so i'd have to push each tag individually. is...
Read more >docker push - Docker Documentation
Use the -a (or --all-tags ) option to push all tags of a local image. The following example creates multiple tags for an...
Read more >Pushing and pulling images | Container Registry documentation
Required permissions; Tag the local image with the registry name; Push the ... Pushing (uploading) and pulling (downloading) images are two of the...
Read more >Pushing a Docker image - Amazon ECR - AWS Documentation
You can push your container images to an Amazon ECR repository with the docker ... If authenticating to multiple registries, you must repeat...
Read more >Pushing Images Using the Docker CLI - Oracle Help Center
Let's say you want to push this image to Container Registry into a repository called project01/acme-web-app with an image tag of version2.0.test, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi everyone, we have released version
0.9.11
with the multi-tag configuration (<to><tags>
for Maven, andto.tags
for Gradle).Example:
@Techtony96 @Hronom @anuraaga @mjrsnyder @jeggy @sdavids @asaikali @itzg @davinkevin @nobecutan, @GuustavoPaiva, @sureshg
@Hronom Yes, that is possible, although that would require changing the schema of
<image>
to take a<reference>
and<tags>
field. I’d be hesitant to do that since it makes the usual case of having a single target image reference require<to><image><reference>
rather than just<to><image>
.An alternative is to have
<tags>
be under the<to>
tag:UPDATE: This is currently being implemented.
Tasks:
to.tags
configuration for Gradle. #978Optimize: