This repository has been archived by the owner on Mar 2, 2023. It is now read-only.
forked from hypnoglow/helm-s3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
119 lines (112 loc) · 3.26 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
project_name: helm-s3
builds:
- id: helm-s3
dir: "."
main: ./cmd/helms3
binary: ./bin/helms3
flags:
- -trimpath
asmflags: []
gcflags: []
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
goarm: []
gomips: []
gobinary: go
mod_timestamp: "{{ .CommitTimestamp }}"
hooks:
pre: []
post: []
skip: false
archives:
- id: archive
builds:
- helm-s3
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
wrap_in_directory: false
files:
- LICENSE
- plugin.yaml
allow_different_binary_count: false
- id: binary
builds:
- helm-s3
format: binary
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
wrap_in_directory: false
files:
- binary_only* # Note: workaround to exclude default files such as LICENSE.
allow_different_binary_count: false
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_sha512_checksums.txt"
algorithm: sha512
ids: [] # Note: all.
disable: false
# Note: currently not working with replacements.
# gomod:
# proxy: true
# env:
# - GOPROXY=https://proxy.golang.org,direct
# - GOSUMDB=sum.golang.org
# gobinary: go
snapshot:
name_template: "{{ .Tag }}-{{ .ShortCommit }}"
#
# Note: container and manifest building and pushing is done in CI. This
# reference is kept for intent "documentation" purposes.
# dockers:
# - goos: linux
# goarch: amd64
# goarm: ""
# ids:
# - plugin
# image_templates:
# - ghcr.io/banzaicloud/{{ .ProjectName }}:{{ .Tag }}-amd64
# skip_push: false
# dockerfile: Dockerfile
# use_buildx: false
# build_flag_templates:
# - --pull
# - --label=org.opencontainers.image.created={{.Date}}
# - --label=org.opencontainers.image.title={{.ProjectName}}
# - --label=org.opencontainers.image.revision={{.FullCommit}}
# - --label=org.opencontainers.image.version={{.Version}}
# extra_files:
# - LICENSE
# - plugin.yaml
# # - goos: linux
# # goarch: arm64
# # goarm: ""
# # ids:
# # - plugin
# # image_templates:
# # - ghcr.io/banzaicloud/{{ .ProjectName }}:{{ .Tag }}-arm64
# # skip_push: false
# # dockerfile: Dockerfile
# # use_buildx: false
# # build_flag_templates:
# # - --pull
# # - --label=org.opencontainers.image.created={{.Date}}
# # - --label=org.opencontainers.image.title={{.ProjectName}}
# # - --label=org.opencontainers.image.revision={{.FullCommit}}
# # - --label=org.opencontainers.image.version={{.Version}}
# # extra_files:
# # - LICENSE
# # - plugin.yaml
#
# docker_manifests:
# - name_template: banzaicloud/{{ .ProjectName }}:{{ .Tag }}
# image_templates:
# - ghcr.io/banzaicloud/{{ .ProjectName }}:{{ .Tag }}-amd64
# # - ghcr.io/banzaicloud/{{ .ProjectName }}:{{ .Tag }}-arm64
# create_flags: []
# push_flags: []