From 36f79d559a958b52241598f20a1c334c113d36d6 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Thu, 6 Jul 2023 00:01:47 +0200 Subject: [PATCH] chore(): Excludes rebuilding container on promotion --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.yml b/.drone.yml index e4a6381..8b79e84 100644 --- a/.drone.yml +++ b/.drone.yml @@ -58,6 +58,10 @@ steps: - "${DRONE_COMMIT_SHA:0:8}" depends_on: - test-build-container + when: + event: + exclude: + - promote - name: trivy-scan image: scm.project42.io/elia/tricks:latest @@ -70,6 +74,10 @@ steps: - generate-scan-report -i scm.project42.io/elia/blog -t "${DRONE_COMMIT_SHA:0:8}" -g "${DRONE_COMMIT_SHA:0:8}" depends_on: - build-container + when: + event: + exclude: + - promote - name: promote-container image: scm.project42.io/elia/tricks:latest