Skip to content

Commit

Permalink
ci: Add -s -w ldflags to release (#1218)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <ianmlewis@gmail.com>
  • Loading branch information
Ian Lewis authored Dec 5, 2023
1 parent 42124ba commit ff5353c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .slsa-goreleaser/todos-darwin-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ binary: todos-{{ .Os }}-{{ .Arch }}

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
- "-s -w -X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
2 changes: 1 addition & 1 deletion .slsa-goreleaser/todos-darwin-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ binary: todos-{{ .Os }}-{{ .Arch }}

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
- "-s -w -X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
2 changes: 1 addition & 1 deletion .slsa-goreleaser/todos-linux-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ binary: todos-{{ .Os }}-{{ .Arch }}

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
- "-s -w -X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
2 changes: 1 addition & 1 deletion .slsa-goreleaser/todos-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ binary: todos-{{ .Os }}-{{ .Arch }}

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
- "-s -w -X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
2 changes: 1 addition & 1 deletion .slsa-goreleaser/todos-windows-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ binary: todos-{{ .Os }}-{{ .Arch }}.exe

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
- "-s -w -X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
2 changes: 1 addition & 1 deletion .slsa-goreleaser/todos-windows-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ binary: todos-{{ .Os }}-{{ .Arch }}.exe

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"
- "-s -w -X sigs.k8s.io/release-utils/version.gitVersion={{ .Env.VERSION }}"

0 comments on commit ff5353c

Please # to comment.