ci: Define triggers per pipeline
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8411d10d8d
commit
5d644a53e3
1 changed files with 24 additions and 0 deletions
24
.drone.yml
24
.drone.yml
|
@ -3,6 +3,11 @@ kind: pipeline
|
|||
type: docker
|
||||
name: "stage:build"
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
image: docker:dind
|
||||
|
@ -69,3 +74,22 @@ steps:
|
|||
# Build
|
||||
- make docker-push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: "stage:deploy"
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
|
||||
steps:
|
||||
- name: "deploy:prepare"
|
||||
image: busybox
|
||||
commands:
|
||||
# Debug
|
||||
- echo "No op"
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue