From 7ad7a56ee8f93387711504f3949bd49631737a88 Mon Sep 17 00:00:00 2001 From: Victor Da Costa Date: Fri, 9 Apr 2021 09:00:30 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 454737e..a289b46 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,6 +41,7 @@ docker-build: versions: stage: test image: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} + needs: [ docker-build ] script: - salt-lint --version - pylint --version @@ -58,8 +59,9 @@ versions: efficiency: stage: test extends: .docker - allow_failure: true image: registry.fpfis.eu/fpfis/container-tools:latest + needs: [ docker-build ] + allow_failure: true variables: CI: "true" FULL_IMAGE: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} @@ -81,6 +83,7 @@ trivy: stage: test extends: .docker image: registry.fpfis.eu/fpfis/container-tools + needs: [ docker-build ] allow_failure: true variables: FULL_IMAGE: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} @@ -98,4 +101,4 @@ trivy: when: never - if: '$CI_COMMIT_REF_NAME == "master"' when: never - - when: always \ No newline at end of file + - when: always -- GitLab