This repository has been archived on 2024-02-15. You can view files and clone it, but cannot push or open issues or pull requests.
config-mapper/.drone.yml

29 lines
604 B
YAML

name: default
kind: pipeline
type: docker
steps:
- name: fetch tags
image: alpine/git
commands:
- git fetch --tags
when:
event:
- tag
- name: build
image: golang:1.17-alpine
commands:
- go build -v ./...
- name: release
image: goreleaser/goreleaser
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
- goreleaser release --clean --release-notes <(git-chglog -t .chglog/RELEASE_CHANGELOG.tpl.md)
when:
event:
- tag