Skip to content

Update Kaniko CI template

What does this MR do and why?

Update Kaniko CI template to allow for the use of Containerfile as a configuration file alongside Dockerfile. If both Containerfile and Dockerfile are present at the root of the project, Containerfile will be used.

This is to support Podman, Buildah and other tools using Containerfile instead of Dockerfile.

How to set up and validate locally

  1. Set up a new GitLab project with a simple Containerfile, e.g. :
FROM docker.io/ubuntu
RUN apt update -y && apt install -y git
  1. Enable CI by copying the new Kaniko CI template into .gitlab-ci.yml
  2. Test that the job is passing and creating a working container

MR acceptance checklist

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

Merge request reports