Skip to content

Add template for build and publish docker images using Kaniko

Jochen requested to merge (removed):feature/kaniko-build-template into master

What does this MR do and why?

This MR will add a new Gitlab CI Temaplte to build docker images using Kaniko within Docker executor and publish it to Gitlabs own Docker Registry. This works without any additional configuration in the runner.

The why: To build docker images using the docker executor you need to run in privileged mode to run Docker-in-Docker. Which is an security issue.

How to set up and validate locally

  1. Add the Template to your Project
  2. Make sure this project contains a Dockerfile and the Docker Registry is enabled
  3. Trigger a pipeline and wait for it to finish
  4. See "Packages & Registries" and you'll find the newly created Docker image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jochen

Merge request reports