How to add tags to docker images made using autobuild

这一生的挚爱 提交于 2019-11-30 04:37:38

问题


I've searched around and can't find a real answer to this. If I create a docker git repo and set up autobuild to my dockerhub account, it will build with a single tag (i.e. latest, or 1.0 or foo) but I can't find any way to add a tag afterwards as you can via command line with a locally built docker image. Pulling down the image and then retagging doesn't work as the autobuild repos are read-only outside of the webui.

Being able to manually add a tag to an existing build would satisfy me for now, but being able to script in something to grab the correct tag version would be the best solution.


回答1:


You can do this through the UI somewhat indirectly:

  • Select Automated Build

  • Add a new build trigger

  • Select Tag from the drop down on the left
  • Enter the git commit hash of the change you want tagged as the Name
  • Enter the tag you want to add to your build



来源:https://stackoverflow.com/questions/26092031/how-to-add-tags-to-docker-images-made-using-autobuild

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!