Update Drone configuration.
This commit is contained in:
parent
d85c9cb53c
commit
591c24bab7
21
.drone.yml
21
.drone.yml
@ -1,7 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
name: lint and test
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
@ -18,10 +18,27 @@ steps:
|
||||
commands:
|
||||
- go test ./...
|
||||
|
||||
- name: docker
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build docker images
|
||||
|
||||
steps:
|
||||
- name: build master image
|
||||
image: plugins/docker
|
||||
when:
|
||||
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"]
|
||||
settings:
|
||||
registry: code.pztrn.name
|
||||
|
Loading…
Reference in New Issue
Block a user