Skip to content

Commit

Permalink
feat: ci/cd setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Jan 20, 2024
1 parent e5dea40 commit e2bab43
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build/package/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ before:
- go mod download

builds:
- id: binary
- id: daemon
goos:
- linux
- darwin
goarch:
- amd64
binary: "{{ .ProjectName }}"
Expand All @@ -26,6 +25,17 @@ builds:
- -s -w -X {{ .Env.MODULE }}/{{ .Env.VERSION_DIR }}.gitCommit={{ .ShortCommit }}
- -s -w -X {{ .Env.MODULE }}/{{ .Env.VERSION_DIR }}.buildDate={{ .CommitDate }}
main: ./main.go
- id: cli
goos:
- linux
goarch:
- amd64
binary: stt-cli
ldflags:
- -s -w -X {{ .Env.MODULE }}/{{ .Env.VERSION_DIR }}.gitVersion={{ .Version }}
- -s -w -X {{ .Env.MODULE }}/{{ .Env.VERSION_DIR }}.gitCommit={{ .ShortCommit }}
- -s -w -X {{ .Env.MODULE }}/{{ .Env.VERSION_DIR }}.buildDate={{ .CommitDate }}
main: ./main.go

archives:
- files:
Expand Down

0 comments on commit e2bab43

Please sign in to comment.