Drone configuration fix #2
|
@ -1,25 +1,30 @@
|
||||||
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:
|
||||||
|
repo:
|
||||||
|
from_secret: DOCKER_REPO
|
||||||
dry_run: true
|
dry_run: true
|
||||||
purge: true
|
purge: true
|
||||||
when:
|
|
||||||
event:
|
trigger:
|
||||||
- pull_request
|
event:
|
||||||
- push
|
- push
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- master
|
||||||
|
|
||||||
---
|
---
|
||||||
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 +36,6 @@ steps:
|
||||||
tags:
|
tags:
|
||||||
- ${DRONE_TAG}
|
- ${DRONE_TAG}
|
||||||
- latest
|
- latest
|
||||||
when:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
Loading…
Reference in a new issue