Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .circleci/config.yml
version: 2.1
workflows:
main:
jobs:
- release:
# Only run this job on git tag pushes
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
jobs:
release:
docker:
- image: cimg/go:1.17
steps:
- checkout
- run:
name: goreleaser
command: curl -sL https://git.io/goreleaser | bash
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ _testmain.go
# Created by .ignore support plugin (hsz.mobi)

dockerize
dist
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- ldflags:
- -s -w -X main.buildVersion={{ .Version }}
tags:
- netgo
goos:
- linux
- darwin
goarch:
- amd64
- arm
- arm64
goarm:
- "6"
- "7"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
env_files:
github_token: ~/.github-token
41 changes: 0 additions & 41 deletions Makefile

This file was deleted.