This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
120 lines (101 loc) · 2.34 KB
/
.goreleaser.yaml
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
project_name: gotofuenv
version: 1
before:
hooks:
- go mod tidy
- go test ./...
builds:
- id: tenv
binary: tenv
main: ./cmd/tenv
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
- id: tofu
binary: tofu
main: ./cmd/tofu
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
- id: terraform
binary: terraform
main: ./cmd/terraform
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
release:
name_template: "Release {{.Tag}}"
changelog:
use: github-native
archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{- .Os }}_{{- .Arch }}"
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}'
maintainer: 'https://github.com/dvaumoron'
homepage: https://github.com/tofuutils/gotofuenv
description: >-
GoTofuEnv help manage several version of OpenTofu (https://opentofu.org) and Terraform (https://www.terraform.io/),
tenv is the managing command and tofu and terraform are proxy commands.
license: "Apache-2.0"
formats:
- deb
- rpm
- apk
bindir: /usr/bin
section: default
contents:
- src: ./LICENSE
dst: /usr/share/doc/gotofuenv/copyright
file_info:
mode: 0444
rpm:
signature:
key_file: "{{ if index .Env \"GPG_KEY_FILE\" }}{{.Env.GPG_KEY_FILE}}{{ end }}"
deb:
signature:
key_file: "{{ if index .Env \"GPG_KEY_FILE\" }}{{.Env.GPG_KEY_FILE}}{{ end }}"
brews:
- repository:
owner: tofuutils
name: homebrew-tap
folder: Formula
homepage: https://github.com/tofuutils/gotofuenv
description: OpenTofu and Terraform version manager (inspired by tofuenv, written in Go)
license: "Apache-2.0"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"