-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser_push.yml
151 lines (130 loc) · 4.51 KB
/
.goreleaser_push.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: 2
project_name: ize
builds:
- env: [CGO_ENABLED=0]
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
id: "ize"
dir: .
main: ./cmd
ldflags:
- -s -w -X 'github.com/hazelops/ize/internal/version.Version={{.Env.RELEASE_VERSION}} {{.Date}} by {{.Env.GITHUB_ACTOR}}' -X 'github.com/hazelops/ize/internal/version.GitCommit={{.Env.SHORT_SHA}}'
tags:
- viper_toml1
release:
prerelease: true
brews:
-
name: ize-dev
repository:
owner: hazelops
name: homebrew-ize
branch: main
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: ize
email: ize@hazelops.com
# The project name and current git tag are used in the format string.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://ize.sh/"
description: "IZE is an opinionated infrastructure wrapper that allows to use multiple tools in one infra"
license: "Apache 2.0"
skip_upload: false
conflicts:
- ize
test: |
system "#{bin}/ize"
# Custom install script for brew.
install: |
bin.install "ize"
nfpms:
# note that this is an array of nfpm configs
-
# ID of the nfpm config, must be unique.
# Defaults to "default".
id: ize-dev
# Name of the package.
# Defaults to `ProjectName`.
# package_name: foo
# You can change the file name of the package.
# Default: `{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}`
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
formats:
- deb
- rpm
vendor: HazelOps
homepage: https://ize.sh
maintainer: Ize development team <ize@hazelops.com>
description: IZE is an opinionated infrastructure wrapper that allows to use multiple tools in one infra
license: Apache 2.0
publishers:
- name: fury.io
# by specifying `packages` id here goreleaser will only use this publisher
# with artifacts identified by this id
ids:
- ize-dev
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/hazelops/
archives:
-
format_overrides:
- goos: windows
format: zip
scoops:
-
repository: # Repository to push the app manifest to.
owner: hazelops
name: scoop-ize
# Optionally a branch can be provided.
# Defaults to the default repository branch.
branch: main
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
# Folder inside the repository to put the scoop.
# Default is the root folder.
directory: dev
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: hazelops
email: ize@hazelops.com
# The project name and current git tag are used in the format string.
commit_msg_template: "Ize update for {{ .ProjectName }} version {{ .Tag }}"
# Your app's homepage.
# Default is empty.
homepage: "https://ize.sh/"
# Your app's description.
# Default is empty.
description: "IZE is an opinionated infrastructure wrapper that allows to use multiple tools in one infra"
# Your app's license
# Default is empty.
license: Apache License 2.0
# Setting this will prevent goreleaser to actually try to commit the updated
# manifest leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the scoop bucket
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: false
# Persist data between application updates
# persist:
# - "data"
# - "config.toml"
# An array of commands to be executed before an application is installed.
# Default is empty.
# pre_install: ["Write-Host 'Running preinstall command'"]
# An array of commands to be executed after an application is installed.
# Default is empty.
# post_install: ["Write-Host 'Running postinstall command'"]
# GOAMD64 to specify which amd64 version to use if there are multiple versions
# from the build section.
# Default is v1.