From 02e0ef602877ad0a05b3aee0f2942a1d3c24beb1 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Mon, 14 Aug 2023 11:26:59 +0200 Subject: [PATCH] ci: use dependencies instread of command not found: needs --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49f0c70beac..c304c79d1df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -125,7 +125,10 @@ container: # For latest releases see https://github.com/GoogleContainerTools/kaniko/releases # Only debug/*-debug versions of the Kaniko image are known to work within Gitlab CI image: gcr.io/kaniko-project/executor:debug - needs: ["tar"] + needs: + - tar + dependencies: + - tar script: - |- tag=$CI_COMMIT_SHORT_SHA @@ -275,7 +278,8 @@ upload_container: # For latest releases see https://github.com/GoogleContainerTools/kaniko/releases # Only debug/*-debug versions of the Kaniko image are known to work within Gitlab CI image: gcr.io/kaniko-project/executor:debug - needs: ["tar"] + dependencies: + - tar rules: - if: $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH