Skip to content

Commit

Permalink
ci: update goreleaser conf
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Jan 14, 2024
1 parent 254f54a commit 717f0c3
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions build/package/.goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
---
project_name: split-the-tunnel

variables:
versionDir: internal/version
module: github.com/bilalcaliskan/{{ .ProjectName }}

env:
- CGO_ENABLED=0
- GO111MODULE=auto
# - VERSION_DIR=internal/version
# - MODULE=github.com/bilalcaliskan/{{ .ProjectName }}
- USERNAME=bilalcaliskan
- MODULE=github.com/bilalcaliskan/{{ .ProjectName }}
- VERSION_DIR=internal/version

before:
hooks:
Expand All @@ -25,9 +22,9 @@ builds:
- amd64
binary: "{{ .ProjectName }}"
ldflags:
- -s -w -X {{ .Var.module }}/{{ .Var.versionDir }}.gitVersion={{ .Version }}
- -s -w -X {{ .Var.module }}/{{ .Var.versionDir }}.gitCommit={{ .ShortCommit }}
- -s -w -X {{ .Var.module }}/{{ .Var.versionDir }}.buildDate={{ .CommitDate }}
- -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:
Expand All @@ -39,7 +36,7 @@ archives:
release:
github:
owner: bilalcaliskan
owner: "{{ .Env.USERNAME }}"
name: "{{ .ProjectName }}"

changelog:
Expand Down

0 comments on commit 717f0c3

Please sign in to comment.