-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
138 lines (127 loc) · 4.42 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
project_name: mach-composer
env:
- SKIP_UPLOAD={{ if index .Env "SKIP_UPLOAD" }}{{ .Env.SKIP_UPLOAD }}{{ else }}false{{ end }}
before:
hooks:
- task tidy
- task download
# Build step
builds:
- id: mach-composer
main: .
binary: bin/mach-composer
flags:
- -trimpath
- -tags=netgo
env:
- CGO_ENABLED=0
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
- all=-trimpath={{.Env.GOPATH}}
ldflags: |
-s -w
-X github.com/mach-composer/mach-composer-cli/internal/cli.version={{.Version}}
-X github.com/mach-composer/mach-composer-cli/internal/cli.commit={{.Commit}}
-X github.com/mach-composer/mach-composer-cli/internal/cli.date={{.CommitDate}}
-extldflags '-static'
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
mod_timestamp: '{{ .CommitTimestamp }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
# Publish step
release:
mode: replace
prerelease: auto
changelog:
use: github
disable: false
archives:
- id: mach-composer
name_template: "mach-composer-{{.Version}}-{{.Os}}-{{.Arch}}{{ if .Arm }}v{{.Arm }}{{ end }}"
format: tar.gz
files:
- LICENSE
format_overrides:
- goos: windows
format: zip
brews:
- name: "{{ .ProjectName }}"
skip_upload: "{{ .Env.SKIP_UPLOAD }}"
repository:
owner: mach-composer
name: homebrew-{{ .ProjectName }}
url_template: https://github.com/mach-composer/mach-composer-cli/releases/download/v{{ .Version }}/{{ .ArtifactName }}
commit_author:
name: goreleaserbot
email: opensource@labdigital.nl
homepage: "https://machcomposer.io/"
description: |
MACH composer is a framework that you use to orchestrate and extend
modern digital commerce & experience platforms, based on MACH
technologies and cloud native services..
license: "MIT"
dependencies:
- name: terraform
- name: git
type: optional
chocolateys:
- title: MACH composer
owners: Lab
authors: Lab Digital
project_url: https://machcomposer.io/
license_url: https://github.com/mach-composer/mach-composer-cli/blob/main/LICENSE
project_source_url: https://github.com/mach-composer/mach-composer-cli
docs_url: https://docs.machcomposer.io
bug_tracker_url: https://github.com/mach-composer/mach-composer-cli/issues
url_template: "https://github.com/mach-composer/mach-composer-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
icon_url: 'https://avatars.githubusercontent.com/u/82937813?s=200&v=4'
copyright: 2020-2022 Lab Digital
tags: "mach terraform"
summary: A framework to orchestrate MACH platforms
description: |
MACH composer is a framework that you use to orchestrate and extend
modern digital commerce & experience platforms, based on MACH
technologies and cloud native services..
release_notes: "https://github.com/mach-composer/mach-composer-cli/releases/tag/v{{ .Version }}"
api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'
#TODO: Re-enable this when we have a working chocolaty registry
# skip_publish: "{{ .Env.SKIP_UPLOAD }}"
skip_publish: true
nix:
- name: mach-composer
url_template: https://github.com/mach-composer/mach-composer-cli/releases/download/v{{ .Version }}/{{ .ArtifactName }}
commit_author:
name: goreleaserbot
email: opensource@labdigital.nl
path: pkgs/mach-composer.nix
description: "Orchestration tool for modern MACH ecosystems, powered by Terraform infrastructure-as-code underneath"
homepage: "https://www.machcomposer.io/"
license: "mit"
skip_upload: "{{ .Env.SKIP_UPLOAD }}"
dependencies:
- git
- terraform
# go-releaser tries to cp bin/mach-composer store/bin/bin/mach-composer
# override install step to fix that. dependencies need redefining here :(
install: |
mkdir -p $out/bin
cp -vr ./bin/mach-composer $out/bin/mach-composer
wrapProgram $out/bin/mach-composer --prefix PATH : ${lib.makeBinPath ([ git terraform ])}
post_install: |
installShellCompletion --cmd mach-composer \
--bash <($out/bin/mach-composer completion bash) \
--fish <($out/bin/mach-composer completion fish) \
--zsh <($out/bin/mach-composer completion zsh)
repository:
owner: mach-composer
name: nix-{{ .ProjectName }}