Skip to content
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

feature request: (g)crane copy tags #1355

Closed
iuadastra opened this issue Apr 28, 2022 · 3 comments · Fixed by #1682
Closed

feature request: (g)crane copy tags #1355

iuadastra opened this issue Apr 28, 2022 · 3 comments · Fixed by #1682
Labels

Comments

@iuadastra
Copy link

Would be great to have the possibility to copy tags of an image. Something like this to copy tags to the destination with the image:
gcrane copy --preserve-tags repo.com/myimage:1.0.0 dest-repo.com

or to add tags while copying:

gcrane copy --preserve-tags --tag latest --tag 1.0 --tag 1 repo.com/myimage:1.0.0 dest-repo.com

@jonjohnsonjr
Copy link
Collaborator

gcrane cp -r will preserve tags, but also copies the entire repository. I agree it would be nice to have a flag to do this for a single image.

There's a flag in docker when pushing (--all-tags or -a) that does something similar enough to this that I wouldn't mind stealing that.

@jonjohnsonjr jonjohnsonjr added the good first issue Good for newcomers label Jun 16, 2022
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@iuadastra
Copy link
Author

Not stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants