feat: auto-release abra with goreleaser when a tag is pushed
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
8aaedee39e
commit
bb8124030e
31
.drone.yml
31
.drone.yml
|
@ -42,6 +42,31 @@ steps:
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
trigger:
|
|
||||||
branch:
|
- name: fetch
|
||||||
- main
|
image: docker:git
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
depends_on:
|
||||||
|
- make check
|
||||||
|
- make build
|
||||||
|
- make test
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: golang:1.16
|
||||||
|
environment:
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: gitea_token
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
commands:
|
||||||
|
- curl -sL https://git.io/goreleaser | bash
|
||||||
|
depends_on:
|
||||||
|
- fetch
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
temp: {}
|
||||||
|
|
|
@ -2,3 +2,4 @@ abra
|
||||||
.vscode/
|
.vscode/
|
||||||
vendor/
|
vendor/
|
||||||
.envrc
|
.envrc
|
||||||
|
dist/
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# This is an example .goreleaser.yml file with some sane defaults.
|
||||||
|
# Make sure to check the documentation at http://goreleaser.com
|
||||||
|
gitea_urls:
|
||||||
|
api: https://git.coopcloud.tech/api/v1
|
||||||
|
download: https://git.coopcloud.tech/
|
||||||
|
skip_tls_verify: false
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
# You may remove this if you don't use go modules.
|
||||||
|
- go mod tidy
|
||||||
|
# you may remove this if you don't need go generate
|
||||||
|
- go generate ./...
|
||||||
|
builds:
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
dir: cmd/abra
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
# - windows
|
||||||
|
# - darwin
|
||||||
|
archives:
|
||||||
|
- replacements:
|
||||||
|
linux: Linux
|
||||||
|
# darwin: Darwin
|
||||||
|
# windows: Windows
|
||||||
|
386: i386
|
||||||
|
amd64: x86_64
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ incpatch .Version }}-next"
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
Loading…
Reference in New Issue