Now I want to inspect Kaniko.gitlab-ci.yml, and maybe change its content, but I can’t find it. The file is not in the project foo/pipeline-templates.
It seems to be a custom template specific our organization, and not one provided by GitLab. I can’t ask anyone, inside the organization.
I used the search feature to search “in all GitLab”, with no results. There are dozens of GitLab projects, it would be hard to check every single one manually.
Any ideas on how I can find this Kaniko.gitlab-ci.yml template file?
Thanks a lot.
The change I had in mind, was to provide a variable for a custom Dockerfile filename. As I see in the original template, it’s hardcoded to be “Dockerfile”, which we can only target with its parent folder (build context).
If I understand the Kaniko template correctly, the env variable DOCKERFILE_PATH can be modified and gets interpreted correctly (both in rules in line 55 and the script in line 49).
Could not resists trying it - the following snippet works for me on GitLab.com SaaS:
Additional proof: Fetching the latest container image and running python -V. Note that this container command might not work in the future because I use this project for testing many different things. Ignore the two errors with -- - sometimes, Docker CLI requires passing commands this way. Seems Rancher Desktop does not.
docker run -ti registry.gitlab.com/dnsmichi/ci-cd-playground:latest python -V