-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
145 lines (141 loc) · 3.48 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
139
140
141
142
143
144
145
project_name: rmk
release:
disable: false
ids:
- rmk
github:
owner: edenlabllc
name: rmk
name_template: '{{.ProjectName}}-v{{.Version}}'
prerelease: auto
header: |
## Release notes:
{{ .Env.RELEASE_NOTES }}
[More info...](https://github.com/edenlabllc/{{ .ProjectName }}/blob/v{{ .Version }}/README.md)
before:
hooks:
# - go get ./...
- go mod tidy
builds:
- goos:
- linux
- darwin
goarch:
- amd64
gomips:
- hardfloat
targets:
- linux_amd64
- darwin_amd64
dir: .
main: .
ldflags:
- -s -w -X main.version={{.Tag}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
- -X main.timestamp={{.Timestamp}} -X main.name={{.Binary}} -X main.builtBy=goreleaser
- -X main.target={{.Os}}_{{.Arch}}
binary: rmk
env:
- CGO_ENABLED=0
builder: go
gobinary: go
archives:
- id: rmk
format: binary
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
blobs:
- bucket: edenlabllc-rmk
provider: s3
region: eu-north-1
disableSSL: true
folder: '{{ .ProjectName }}/latest-rc'
disable: '{{ envOrDefault "DISABLE_BLOB_RMK_RC" "false" }}'
ids:
- rmk
extra_files:
- glob: ./bin/metadata.json
- bucket: edenlabllc-rmk
provider: s3
region: eu-north-1
disableSSL: true
folder: '{{ .ProjectName }}/latest'
disable: '{{ envOrDefault "DISABLE_BLOB_RMK" "false" }}'
ids:
- rmk
extra_files:
- glob: ./bin/metadata.json
- provider: s3
region: eu-north-1
disableSSL: true
bucket: edenlabllc-rmk
ids:
- rmk
- provider: s3
region: eu-north-1
disableSSL: true
bucket: edenlabllc-rmk
folder: "{{ .ProjectName }}"
ids:
- none
extra_files:
- glob: ./bin/s3-installer
checksum:
name_template: 'checksums.txt'
algorithm: sha256
dist: dist
gomod:
gobinary: go
env:
- GOPROXY=direct
snapshot:
name_template: 'v{{ incpatch .Version }}-next'
source:
enabled: false
changelog:
skip: true
announce:
twitter:
enabled: false
reddit:
enabled: false
slack:
enabled: true
# Message template to use while publishing.
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
message_template: |
*Released a new version of {{ toupper .ProjectName }}: `{{ .Tag }}`*
*Release notes:*
{{- range (split .Env.RELEASE_NOTES "\n") }}
{{ . }}
{{- end }}
Installation of the latest RMK version:
```
curl -sL "https://edenlabllc-rmk.s3.eu-north-1.amazonaws.com/rmk/s3-installer" | bash
rmk --version
```
Installation of a specific RMK version:
```
curl -sL "https://edenlabllc-rmk.s3.eu-north-1.amazonaws.com/rmk/s3-installer" | bash -s -- "${RMK_VERSION}"
rmk --version
```
Update to the latest RMK version:
```
rmk update
```
Update to a specific RMK version:
```
rmk update --version vX.X.X
```
*Actions required in project repositories after an update:*
```
rmk config init
```
# The name of the channel that the user selected as a destination for webhook messages.
channel: '#fhir-rmk'
# Set your Webhook's username.
username: 'GoReleaser'
# Emoji to use as the icon for this message. Overrides icon_url.
icon_emoji: "package"
discord:
enabled: false
teams:
enabled: false