Drone configuration fix #2
13
.drone.yml
13
.drone.yml
|
@ -1,14 +1,15 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-pr
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: 'docker_build'
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
dry_run: true
|
dry_run: true
|
||||||
purge: true
|
purge: true
|
||||||
when:
|
|
||||||
|
trigger:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
@ -16,10 +17,10 @@ steps:
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-and-publish
|
name: publish
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish
|
- name: 'docker_publish'
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -31,6 +32,6 @@ steps:
|
||||||
tags:
|
tags:
|
||||||
- ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
- latest
|
- latest
|
||||||
when:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
Loading…
Reference in a new issue