Skip to content

Commit

Permalink
add goreleaser definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael P. Ribeiro committed Aug 30, 2021
1 parent b3bfeda commit c3f1232
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/containerd-healthcheck/main.go
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
linux: Linux
amd64: x86_64
files:
- none*
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GIT_BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
GIT_COMMIT = $(shell git rev-parse HEAD)
BUILD_DATE = $(shell date +'%Y-%m-%dT%H:%M:%SZ')
LDFLAGS = "-X main.commit=$(GIT_COMMIT) -X main.version=$(VERSION) -X main.date=$(BUILD_DATE)"
PORT = "9891"
PORT = "9434"
ENV = development

export PATH := $(PATH):$(ROOT_DIR)/.bin
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/AppsFlyer/go-sundheit/opencensus v0.0.0-20210815135105-b87b5e51e25b
github.com/containerd/containerd v1.5.5
github.com/ilyakaznacheev/cleanenv v1.2.5
github.com/prometheus/client_golang v1.11.0
github.com/sirupsen/logrus v1.8.1
github.com/spf13/pflag v1.0.5
go.opencensus.io v0.23.0
Expand Down

0 comments on commit c3f1232

Please sign in to comment.