Skip to content

Commit

Permalink
ci(fix): add caches
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbaehler committed Oct 18, 2023
1 parent f65e324 commit 30e51f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: Go Release

permissions: {}
on:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ before:
gomod:
proxy: false
builds:
- main: ./main.go
- main: .
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
env:
- CGO_ENABLED=0
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ ko:
####################
# -- Helpers
####################

pull-upstream:
git remote add upstream https://github.com/capsuleproject/capsule.git
git fetch --all && git pull upstream
Expand Down
12 changes: 10 additions & 2 deletions dist/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 30e51f8

Please sign in to comment.