Skip to content

Commit

Permalink
feat: added releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Dec 16, 2024
1 parent 55b45b3 commit c8fb662
Showing 1 changed file with 151 additions and 0 deletions.
151 changes: 151 additions & 0 deletions cl/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
version: 1

project_name: cl
dist: /tmp/dist/cl

builds:
- id: redisapp
env:
- CGO_ENABLED=0
dir: ./cl/cmd/redisapp
main: ./main.go
binary: redisapp
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64

- id: member
env:
- CGO_ENABLED=0
dir: ./cl/cmd/member
main: ./main.go
binary: member
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64

- id: streamer
env:
- CGO_ENABLED=0
dir: ./cl/cmd/streamer
main: ./main.go
binary: streamer
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64

archives:
- id: redisapp
builds:
- redisapp
format: tar.gz
name_template: >-
{{ .ProjectName }}-
{{ .Binary }}_
{{- with index .Env "RELEASE_VERSION" -}}
{{ . }}
{{- else -}}
{{- if .IsSnapshot }}{{ .ShortCommit }}
{{- else }}{{ .Version }}
{{- end }}
{{- end -}}
{{- with index .Env "DIRTY_SUFFIX" -}}
{{ . }}
{{- end -}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "386" }}i386{{ else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip

- id: member
builds:
- member
format: tar.gz
name_template: >-
{{ .ProjectName }}-
{{ .Binary }}_
{{- with index .Env "RELEASE_VERSION" -}}
{{ . }}
{{- else -}}
{{- if .IsSnapshot }}{{ .ShortCommit }}
{{- else }}{{ .Version }}
{{- end }}
{{- end -}}
{{- with index .Env "DIRTY_SUFFIX" -}}
{{ . }}
{{- end -}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "386" }}i386{{ else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip

- id: streamer
builds:
- streamer
format: tar.gz
name_template: >-
{{ .ProjectName }}-
{{ .Binary }}_
{{- with index .Env "RELEASE_VERSION" -}}
{{ . }}
{{- else -}}
{{- if .IsSnapshot }}{{ .ShortCommit }}
{{- else }}{{ .Version }}
{{- end }}
{{- end -}}
{{- with index .Env "DIRTY_SUFFIX" -}}
{{ . }}
{{- end -}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "386" }}i386{{ else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip

checksum:
name_template: >-
{{ .ProjectName }}_
{{- with index .Env "RELEASE_VERSION" -}}
{{ . }}
{{- else -}}
{{- if .IsSnapshot }}{{ .ShortCommit }}
{{- else }}{{ .Version }}
{{- end }}
{{- end -}}
{{- with index .Env "DIRTY_SUFFIX" -}}
{{ . }}
{{- end -}}
_checksums.txt
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

0 comments on commit c8fb662

Please sign in to comment.