chore(): Excludes rebuilding container on promotion
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Elia el Lazkani 2023-07-06 00:01:47 +02:00
parent 720c8e29ea
commit 36f79d559a

View file

@ -58,6 +58,10 @@ steps:
- "${DRONE_COMMIT_SHA:0:8}" - "${DRONE_COMMIT_SHA:0:8}"
depends_on: depends_on:
- test-build-container - test-build-container
when:
event:
exclude:
- promote
- name: trivy-scan - name: trivy-scan
image: scm.project42.io/elia/tricks:latest 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}" - generate-scan-report -i scm.project42.io/elia/blog -t "${DRONE_COMMIT_SHA:0:8}" -g "${DRONE_COMMIT_SHA:0:8}"
depends_on: depends_on:
- build-container - build-container
when:
event:
exclude:
- promote
- name: promote-container - name: promote-container
image: scm.project42.io/elia/tricks:latest image: scm.project42.io/elia/tricks:latest