chore(): Adds triggers and fixes steps names
This commit is contained in:
parent
61248202d5
commit
4a0ba93df1
1 changed files with 15 additions and 5 deletions
20
.drone.yml
20
.drone.yml
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: test-build-container
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: check-container
|
||||
- name: test-build-container
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: scm.project42.io
|
||||
|
@ -19,12 +19,17 @@ steps:
|
|||
- pre-scan
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
|
||||
trigger:
|
||||
exclude:
|
||||
event:
|
||||
- promote
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: build-container
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: check-container
|
||||
- name: build-container
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: scm.project42.io
|
||||
|
@ -39,9 +44,14 @@ steps:
|
|||
tags:
|
||||
- production
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
|
||||
depends_on:
|
||||
test-build-container
|
||||
- test
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
|
Loading…
Reference in a new issue