From 18b2a600936c6f7945d6f1131f606c7083a515ff Mon Sep 17 00:00:00 2001 From: Konrad Botor <kbotor@syncad.com> Date: Fri, 12 Jan 2024 12:16:18 +0100 Subject: [PATCH] Disabled Git directory permission check for publishing job --- templates/docker_image_jobs.gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/docker_image_jobs.gitlab-ci.yml b/templates/docker_image_jobs.gitlab-ci.yml index c7c56ed..65e17d5 100644 --- a/templates/docker_image_jobs.gitlab-ci.yml +++ b/templates/docker_image_jobs.gitlab-ci.yml @@ -42,7 +42,9 @@ include: DOCKER_HUB_USER: $DOCKER_HUB_USER DOCKER_HUB_PASSWORD: $DOCKER_HUB_PASSWORD before_script: - - echo "Disabled the default before_script from image builder job template" + - | + echo "Disabled Git directory permission check" + git config --global --add safe.directory '*' rules: - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"' when: manual -- GitLab