Skip to content

Commit

Permalink
ci: use dependencies instread of command not found: needs
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Aug 14, 2023
1 parent 1de87b4 commit 02e0ef6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .gitlab-ci.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 02e0ef6

Please sign in to comment.