Update Drone configuration.
This commit is contained in:
parent
2b44a60ee7
commit
d85c9cb53c
13
.drone.yml
13
.drone.yml
@ -5,14 +5,14 @@ name: build
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golangci/golangci-lint:v1.43.0
|
image: golangci/golangci-lint:v1.46.2
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- golangci-lint run
|
- golangci-lint run
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.17.3-alpine
|
image: golang:1.18.3-alpine
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
@ -22,10 +22,11 @@ steps:
|
|||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
when:
|
when:
|
||||||
branch: ["master"]
|
branch: ["master"]
|
||||||
|
event: ["tag"]
|
||||||
settings:
|
settings:
|
||||||
username:
|
registry: code.pztrn.name
|
||||||
from_secret: dockerhub_user
|
username: drone
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_password
|
from_secret: drone_secret
|
||||||
repo: pztrn/fastpastebin
|
repo: code.pztrn.name/pztrn/fastpastebin
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
Loading…
Reference in New Issue
Block a user