The source project of this merge request has been removed.
Add template for build and publish docker images using Kaniko
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
- Add the Template to your Project
- Make sure this project contains a
Dockerfile
and the Docker Registry is enabled - Trigger a pipeline and wait for it to finish
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jochen