-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
55 lines (50 loc) · 1.62 KB
/
Copy path.goreleaser.yaml
File metadata and controls
55 lines (50 loc) · 1.62 KB
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
52
53
54
55
project_name: kubectl-mongodb
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/kubectl-mongodb
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- s390x
- ppc64le
hooks:
# This will notarize Apple binaries and replace goreleaser bins with the notarized ones
post:
- cmd: ./scripts/release/kubectl_mongodb/kubectl_mac_notarize.sh
output: true
- cmd: ./scripts/release/kubectl_mongodb/sign.sh {{ .Path }}
env:
- GRS_USERNAME={{ .Env.GRS_USERNAME }}
- GRS_PASSWORD={{ .Env.GRS_PASSWORD }}
- PKCS11_URI={{ .Env.PKCS11_URI }}
- ARTIFACTORY_URL={{ .Env.ARTIFACTORY_URL }}
- SIGNING_IMAGE_URI={{ .Env.SIGNING_IMAGE_URI }}
- ARTIFACTORY_USERNAME=mongodb-enterprise-kubernetes-operator
- ARTIFACTORY_PASSWORD={{ .Env.ARTIFACTORY_PASSWORD }}
- cmd: ./scripts/release/kubectl_mongodb/verify.sh {{ .Path }} && echo "VERIFIED OK"
archives:
- format: tar.gz
name_template: "kubectl-mongodb_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
# Include signature files in each archive along with the binary, strip_parent avoid nested folders
- src: "./dist/kubectl-mongodb_{{ .Os }}_{{ .Arch }}*{{ .Amd64 }}/kubectl-mongodb.sig"
strip_parent: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
skip: true
release:
prerelease: auto
draft: true
name_template: "MongoDB Kubernetes Operator {{ .Version }}"
git:
tag_sort: -version:creatordate