How to add tags to docker images made using autobu

2019-02-13 12:01发布

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条回答
老娘就宠你
2楼-- · 2019-02-13 12:47

You can do this through the UI somewhat indirectly:

  • Select Automated Build

Automated Build

  • Add a new build trigger

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 Tag
查看更多
登录 后发表回答