Docker Community Forums

Share and learn in the Docker community.

Automated build runs twice (since redesign)


#1

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


#2

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


#3

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.


(Oninoshiko) #4

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


(Andrew Nicols) #5

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/