Update Drone configuration.
This commit is contained in:
parent
d85c9cb53c
commit
591c24bab7
21
.drone.yml
21
.drone.yml
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: lint and test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
@ -18,10 +18,27 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
- name: docker
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build docker images
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build master image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
when:
|
when:
|
||||||
branch: ["master"]
|
branch: ["master"]
|
||||||
|
settings:
|
||||||
|
registry: code.pztrn.name
|
||||||
|
username: drone
|
||||||
|
password:
|
||||||
|
from_secret: drone_secret
|
||||||
|
repo: code.pztrn.name/pztrn/fastpastebin
|
||||||
|
auto_tag: true
|
||||||
|
|
||||||
|
- name: build tagged image
|
||||||
|
image: plugins/docker
|
||||||
|
when:
|
||||||
event: ["tag"]
|
event: ["tag"]
|
||||||
settings:
|
settings:
|
||||||
registry: code.pztrn.name
|
registry: code.pztrn.name
|
||||||
|
Loading…
Reference in New Issue
Block a user