This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -6,6 +6,15 @@ platform:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
steps:
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: docker:git
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- tag
|
||||||
- name: init
|
- name: init
|
||||||
image: golang:1.18.3-alpine3.16
|
image: golang:1.18.3-alpine3.16
|
||||||
commands:
|
commands:
|
||||||
@@ -32,3 +41,12 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- name: release
|
||||||
|
image: goreleaser/goreleaser
|
||||||
|
environment:
|
||||||
|
GITHUB_TOKEN:
|
||||||
|
from_secret: github_token
|
||||||
|
commands:
|
||||||
|
- goreleaser release
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
Reference in New Issue
Block a user