New Git tag does not trigger automatic build anymore

I just pushed a new Git tag to a GitHub repository of mine and noticed that the automatic build feature stopped working for me. I am using the “match versions” build rule from the “example build rules” in the “Build settings” section:

  • Type: Tag
  • Name: /^[0-9.]+$/
  • Dockerfile location: /
  • Docker Tag Name: {sourceref}

My most recent Git tag is “0.1.3”, which should be matched by the Regex.

Here’s a screenshot of my build rules:

Note: When I push to my GitHub repo, the “latest” build rule is triggered, so my GitHub Webhook seems to be working fine.

Does anybody have any idea on how to solve this?

1 Like

Same Issue here! The “build on new tag” feature doesn’t seem to work anymore.

It must have something to do with the consolidation of docker cloud and docker hub: https://blog.docker.com/2018/12/the-new-docker-hub/

I tried to configure a classic build (https://docs.docker.com/docker-hub/builds/classic/) but that doesn’t work either…

My current workaround is manually creating a new Build Rule for every new tag.

Nevermind, the feature seems to work again for me.
I had to configure an Automated Build (not “Classic”):

I was not aware that the Build Rules I had created were “Classic” Automated Builds.

So apparently in order to create Automated Builds now, I have to link my Docker Hub account to my GitHub account, right?

@djbrown: Where did you configure your non-Classic Automated Build?

I linked my GitHub account and deleted all previous build rules, but my build rules interface still looks the same (no “Autobuild” and “Build caching” settings visible).

You can manage your Docker Repository’s Build Triggers on Docker Cloud at https://cloud.docker.com/repository/docker/USERNAME/REPONAME/builds/edit.
For example for my Repo I go to https://cloud.docker.com/repository/docker/djbrown/hbscorez/builds/edit.

You should also be able to navigate there via UI by goiing to your Repo on Docker Cloud > Builds > Configure Automated Builds (see screenshot).

Maybe you also have to delete Docker Hub and/or Docker Cloud integrations from GitHub.
You can also try to turn off Classic Automated Builds (deselect “When active, builds will trigger automatically on push actions.” under Build Settings section).

@djbrown: Thanks for your help. I could not configure any builds using that URL; I simply got an empty page. Apparently the only page that let me change any build settings was the “classic builds” page (almost the same URL as yours: https://cloud.docker.com/repository/docker/USERNAME/REPONAME/hubbuilds/).

Deleting integrations did not change anything for me. I have just removed and recreated the complete repository on Docker Hub and now I can finally configure automated builds as expected.

I still can’t get this to work. Nor do the instructions for triggering a build via curl work. I get a successful response but nothing happens.

I cannot delete my private or public repository from docker hub

When i trying to delete public or private repository from docker hub i got error

Command which i was trying to delete from terminal
curl -s -v -H “Authorization: JWT ${HUB_TOKEN}” -X DELETE “https://hub.docker.com/v2/repositories/mohd/test2/”

After execute i got error
image