From 30e51f8b7fea23cc9b94b5bbc446d1445785a15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Wed, 18 Oct 2023 14:26:02 +0200 Subject: [PATCH] ci(fix): add caches --- .github/workflows/releaser.yml | 2 +- .goreleaser.yml | 2 +- Makefile | 1 - dist/config.yaml | 12 ++++++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 6c6a947bc..7b112c555 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 001a24733..c945625ca 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 0c9afc7e1..9745dd388 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 b606e643d..de7b732f4 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: