-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
57 lines (56 loc) · 1.69 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
52
53
54
55
56
57
version: 2
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/crusoe-csi-driver/main.go
env:
- CGO_ENABLED=0
mod_timestamp: '{{.CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- "-X 'github.com/crusoecloud/crusoe-csi-driver/internal/driver.version={{ .Tag }}' -X 'github.com/crusoecloud/crusoe-csi-driver/internal/driver.name={{ .Env.CRUSOE_CSI_DRIVER_NAME }}'"
goos:
- linux
goarch:
- amd64
- arm64
binary: '{{ .ProjectName }}'
dockers:
- image_templates:
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-amd64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
dockerfile: Dockerfile.goreleaser
- image_templates:
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-arm64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
dockerfile: Dockerfile.goreleaser
goarch: arm64
docker_manifests:
- name_template: 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}'
image_templates:
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-amd64'
- 'ghcr.io/crusoecloud/{{ .ProjectName }}:{{ .Tag }}-arm64'
signs:
- artifacts: checksum
args:
# if you are using this in a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
changelog:
disable: true