forked from mach-composer/mach-composer-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
109 lines (99 loc) · 3.23 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
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
skip: 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: [email protected]
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