diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 6c6a947b..7b112c55 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -1,4 +1,4 @@ -name: release +name: Go Release permissions: {} on: diff --git a/.goreleaser.yml b/.goreleaser.yml index 001a2473..c945625c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,7 +8,7 @@ before: gomod: proxy: false builds: - - main: ./main.go + - main: . binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}" env: - CGO_ENABLED=0 diff --git a/Makefile b/Makefile index 0c9afc7e..9745dd38 100644 --- a/Makefile +++ b/Makefile @@ -263,7 +263,6 @@ ko: #################### # -- Helpers #################### - pull-upstream: git remote add upstream https://github.com/capsuleproject/capsule.git git fetch --all && git pull upstream diff --git a/dist/config.yaml b/dist/config.yaml index b606e643..de7b732f 100644 --- a/dist/config.yaml +++ b/dist/config.yaml @@ -8,6 +8,14 @@ release: name: capsule prerelease: auto name_template: '{{.Tag}}' + footer: | + Thanks to all the contributors! + + **Full Changelog**: https://github.com/projectcapsule/{{ .ProjectName }}/compare/{{ .PreviousTag }}...{{ .Tag }} + + **Docker Images** + - `ghcr.io/projectcapsule/{{ .ProjectName }}:{{ .Tag }}` + - `ghcr.io/projectcapsule/{{ .ProjectName }}:latest` scoop: name: capsule commit_author: @@ -32,14 +40,14 @@ builds: - linux_amd64_v1 - linux_arm64 dir: . - main: ./main.go + main: . binary: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}' builder: go mod_timestamp: '{{ .CommitTimestamp }}' gobinary: go command: build ldflags: - - -X github.com/oliverbaehler/{{ .ProjectName }}/cmd/{{ .ProjectName }}/cmd.Version={{ .Tag }} -X github.com/oliverbaehler/{{ .ProjectName }}/cmd/{{ .ProjectName }}/cmd.GitCommit={{ .Commit }} -X github.com/oliverbaehler/{{ .ProjectName }}/cmd/{{ .ProjectName }}/cmd.BuildDate={{ .Date }} + - -X main.Version={{ .Tag }} -X main.GitCommit={{ .Commit }} -X main.GitTag={{ .Tag }} -X main.GitTreeState={{ .Date }} -X main.BuildDate={{ .Date }} -X main.GitRepo={{ .ProjectName }} flags: - -trimpath env: