forked from thestormforge/optimize-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
51 lines (51 loc) · 1.53 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
project_name: redskyctl
before:
hooks:
- go mod download
builds:
- dir: redskyctl
env:
- CGO_ENABLED=0
goarch:
- amd64
ldflags:
- '-s -w'
- '-X github.com/redskyops/redskyops-controller/internal/version.Version=v{{ .Version }}'
- '-X github.com/redskyops/redskyops-controller/internal/version.GitCommit={{ .FullCommit }}'
- '-X github.com/redskyops/redskyops-controller/internal/version.BuildMetadata={{ .Env.BUILD_METADATA }}'
- '-X github.com/redskyops/redskyops-controller/internal/setup.Image={{ .Env.SETUPTOOLS_IMG }}'
- '-X github.com/redskyops/redskyops-controller/internal/setup.ImagePullPolicy={{ .Env.PULL_POLICY }}'
- '-X github.com/redskyops/redskyops-controller/redskyctl/internal/kustomize.BuildImage={{ .Env.IMG }}'
hooks:
post:
- hack/codesign.sh "{{ .Path }}"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: '{{ replace .Tag "v" "" }}-next'
release:
draft: true
archives:
- name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
files:
- none*
dockers:
- image_templates:
- '{{ .Env.REDSKYCTL_IMG }}'
dockerfile: redskyctl/Dockerfile
brews:
- github:
owner: redskyops
name: homebrew-tap
folder: Formula
commit_author:
name: Butch Masters
email: [email protected]
homepage: "https://redskyops.dev/"
description: Kubernetes Exploration
signs:
- artifacts: checksum
- id: notarization
cmd: hack/notarize.sh
args: ["${artifact}"]
artifacts: all