Automated build runs twice (since redesign)

Currently our automated builds are running twice.
I checked the logs. This has been happening for about 5 days (so around the 14th of December?).
No changes to the build settings have been made.

I checked the webhook log on GitHub, it only triggered once.

I triggered the build of each web hook by hand. It only builds once.

Maybe something changed with how Dockerfiles are found? We have two dockerfiles in the repository.

Git Repository Dockerfiles:

/Dockerfile
/Dockerfile-worker

Automated Build Settings:

[Branch] mybranch, /, mytag
[Branch] mybranch, /Dockerfile-worker, mytag-worker

Result (Last week)

Building mytag
Building mytag-worker

Result (Now)

Building mytag
Building mytag
Building mytag-worker
Building mytag-worker

1 Like

Experience the same behaviour, but only one dockerfile on each repository.

https://hub.docker.com/r/erothejoker/docker-hugo Reproduces
https://hub.docker.com/r/erothejoker/docker-docfx Doesn’t Reproduce

Both use same triggers/hooks for starting seems odd that Hugo one gets double builds on trigger

2 Likes

I experience the same thing: https://hub.docker.com/r/aksw/quitstore/builds/ using github integration.
Maybe it is dues to the github apps and a hook or some other double wiring between github and docker hub.

1 Like

Noticing this too. Any word on how to fix it?

I’ve seen this on one of our repositories in the past. It was happening on a repository linked to GitHub.

Previously the build happened via a GitHub hook. When Docker changes the integration the GitHub hook became superflous but was not removed. Whenever we pushed we got a double-build.

Removing the GitHub hook solved it for us. Maybe start by checking there.

These docs may be relevant: https://docs.docker.com/docker-hub/builds/classic/

2 Likes

I too am seeing this issue. All my hub repos are linked to GitHub repos.

1 Like

Check your webhook in Github, it was double linked for me.

4 Likes

You you are right, this has happened to us again and there were multiple entries in the GitHub webhook settings.

Note: I am not sure if this is the same issue, that I reported over a year when they rewrote the docker hub website. Because back then I did check GitHub. But I marked your answer as solution in case someone find this post in the future.

bingo.

now where do those double webhooks come from? for I sure as hell didn’t manually create them…