-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yml
More file actions
60 lines (59 loc) · 1.65 KB
/
.goreleaser.yml
File metadata and controls
60 lines (59 loc) · 1.65 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
56
57
58
59
60
version: 2
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
before:
hooks:
- go mod tidy
builds:
- id: crusoe-csi-driver
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/common.PluginVersion={{ .Tag }}
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
goarch: amd64
- 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