-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
160 lines (146 loc) · 3.72 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: oictl
env:
- CGO_ENABLED=0
dir: cmd/oictl
binary: oictl
goos:
- linux
- darwin
- id: catalog/http
env:
- CGO_ENABLED=0
dir: cmd/catalog/http
binary: http-{{ .Env.HTTP_SERVICE_VERSION }}
goos:
- linux
- darwin
- id: catalog/slack
env:
- CGO_ENABLED=0
dir: cmd/catalog/slack
binary: slack-{{ .Env.SLACK_SERVICE_VERSION }}
goos:
- linux
- darwin
- id: catalog/github
env:
- CGO_ENABLED=0
dir: cmd/catalog/github
binary: github-{{ .Env.GITHUB_SERVICE_VERSION }}
goos:
- linux
- darwin
- id: catalog/trello
env:
- CGO_ENABLED=0
dir: cmd/catalog/trello
binary: trello-{{ .Env.TRELLO_SERVICE_VERSION }}
goos:
- linux
- darwin
- id: catalog/airtable
env:
- CGO_ENABLED=0
dir: cmd/catalog/airtable
binary: airtable-{{ .Env.AIRTABLE_SERVICE_VERSION }}
goos:
- linux
- darwin
- id: catalog/google-calendar
env:
- CGO_ENABLED=0
dir: cmd/catalog/google-calendar
binary: google-calendar-{{ .Env.GOOGLE_CALENDAR_SERVICE_VERSION }}
goos:
- linux
- darwin
dockers:
- ids:
- oictl
image_templates:
- openintegration/oi:latest
- openintegration/oi:{{ .Tag }}
dockerfile: Dockerfile
build_flag_templates:
- "--build-arg=SHA={{.FullCommit}}"
- ids:
- catalog/http
image_templates:
- openintegration/serivce-http:latest
- openintegration/serivce-http:{{ .Env.HTTP_SERVICE_VERSION }}
dockerfile: catalog/shared/Dockerfile
build_flag_templates:
- "--build-arg=SERVICE=http"
- ids:
- catalog/slack
image_templates:
- openintegration/serivce-slack:latest
- openintegration/serivce-slack:{{ .Env.SLACK_SERVICE_VERSION }}
dockerfile: catalog/shared/Dockerfile
build_flag_templates:
- "--build-arg=SERVICE=slack"
- ids:
- catalog/github
image_templates:
- openintegration/serivce-github:latest
- openintegration/serivce-github:{{ .Env.GITHUB_SERVICE_VERSION }}
dockerfile: catalog/shared/Dockerfile
build_flag_templates:
- "--build-arg=SERVICE=github"
- ids:
- catalog/trello
image_templates:
- openintegration/serivce-trello:latest
- openintegration/serivce-trello:{{ .Env.TRELLO_SERVICE_VERSION }}
dockerfile: catalog/shared/Dockerfile
build_flag_templates:
- "--build-arg=SERVICE=trello"
- ids:
- catalog/airtable
image_templates:
- openintegration/serivce-airtable:latest
- openintegration/serivce-airtable:{{ .Env.AIRTABLE_SERVICE_VERSION }}
dockerfile: catalog/shared/Dockerfile
build_flag_templates:
- "--build-arg=SERVICE=airtable"
- ids:
- catalog/google-calendar
image_templates:
- openintegration/serivce-google-calendar:latest
- openintegration/serivce-google-calendar:{{ .Env.GOOGLE_CALENDAR_SERVICE_VERSION }}
dockerfile: catalog/shared/Dockerfile
build_flag_templates:
- "--build-arg=SERVICE=google-calendar"
archives:
- replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
# brews:
# - name: oictl
# ids:
# - oictl
# tap:
# owner: open-integration
# name: homebrew-oi
# folder: Formula
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'