Update Drone configuration.

This commit is contained in:
Stanislav Nikitin 2022-06-26 22:08:23 +05:00
parent d85c9cb53c
commit 591c24bab7
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -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