Configure DockerHub (code repository + webhook)

Now, we need to tell DockerHub to build a new image on every GitHub push to the master branch. First, go to https://cloud.docker.com, then Repositories and click on Create button. Once you have created the repository, link it to your GitHub account and click on Configure Automated Builds :

Select your GitHub repository and create a trigger that will:

React to changes on a master branch

branch Tag image as latest

Ensure that autobuild is switched on and click on “Save and Build”. You will get your first image prepared.

Also, we will need to setup DockerHub webhooks to Keel via Webhook Relay. For some reason, that configuration is not available on https://cloud.docker.com and we have to go to https://hub.docker.com:

Deploy Keel and your app

First, we need to deploy Keel with Webhook Relay sidecar. This is a one-off thing after which when you add more applications to your Kubernetes environment you don’t need to repeat this step.

Webhook Relay daemon will need authentication details to connect. We can use relay CLI to configure and insert secret into our Kubernetes environment:

kubectl create namespace keel

Now, let’s create a secret: