Skip to content

fix(ci-templates): allow to set docker build context in Docker.gitlab-ci.yml

What does this MR do and why?

Not possible to set the container build context in the gitlab ci file template : https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Docker.gitlab-ci.yml
But in the gitlab ci file template is possible : https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Kaniko.gitlab-ci.yml
I just add the possibily to set it by using a environment variable.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Sophian Mehboub

Merge request reports

Loading