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
|
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:
|
||||||
|
|
Loading…
Reference in a new issue