Docker Community Forums

Share and learn in the Docker community.

How to avoid automated build on specific branches?

Some github repositories have a gh-pages branch. They don’t have a Dockerfile as they contain the website associated with the repository. When an update of that branch triggers an automated build, the build fails due to the lack of Dockerfile.

What regex can I use that triggers a build on all branches except gh-pages?