Using triggers for pipelines.
This commit is contained in:
parent
1c0c7af3f9
commit
9654018b77
13
.drone.yml
13
.drone.yml
|
@ -1,14 +1,15 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: build-pr
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
- name: 'docker_build'
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dry_run: true
|
||||
purge: true
|
||||
when:
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
@ -16,10 +17,10 @@ steps:
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-publish
|
||||
name: publish
|
||||
|
||||
steps:
|
||||
- name: publish
|
||||
- name: 'docker_publish'
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
|
@ -31,6 +32,6 @@ steps:
|
|||
tags:
|
||||
- ${DRONE_TAG}
|
||||
- latest
|
||||
when:
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
Loading…
Reference in a new issue