chore(): Adds triggers and fixes steps names
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Elia el Lazkani 2023-07-03 19:01:08 +02:00
parent 61248202d5
commit 4a0ba93df1

View file

@ -1,9 +1,9 @@
--- ---
kind: pipeline kind: pipeline
name: test-build-container name: test
steps: steps:
- name: check-container - name: test-build-container
image: plugins/docker image: plugins/docker
settings: settings:
registry: scm.project42.io registry: scm.project42.io
@ -19,12 +19,17 @@ steps:
- pre-scan - pre-scan
- "${DRONE_COMMIT_SHA:0:8}" - "${DRONE_COMMIT_SHA:0:8}"
trigger:
exclude:
event:
- promote
--- ---
kind: pipeline kind: pipeline
name: build-container name: build
steps: steps:
- name: check-container - name: build-container
image: plugins/docker image: plugins/docker
settings: settings:
registry: scm.project42.io registry: scm.project42.io
@ -39,9 +44,14 @@ steps:
tags: tags:
- production - production
- "${DRONE_COMMIT_SHA:0:8}" - "${DRONE_COMMIT_SHA:0:8}"
when:
event:
- promote
target:
- production
depends_on: depends_on:
test-build-container - test
trigger: trigger:
event: event: