.goreleaser.yml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. env:
  2. - GO111MODULE=on
  3. - CGO_ENABLED=0
  4. - GOFLAGS=-mod=vendor
  5. - GOPROXY=off
  6. builds:
  7. - id: cfssl-darwin
  8. binary: cfssl
  9. env:
  10. - CC=o64-clang
  11. - CXX=o64-clang++
  12. - CGO_ENABLED=1
  13. goos:
  14. - darwin
  15. goarch:
  16. - amd64
  17. - arm64
  18. main: ./cmd/cfssl
  19. ldflags:
  20. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  21. flags:
  22. - -buildvcs=false
  23. - id: cfssl-linux
  24. binary: cfssl
  25. goos:
  26. - linux
  27. goarch:
  28. - amd64
  29. - arm
  30. - arm64
  31. - s390x
  32. main: ./cmd/cfssl
  33. ldflags:
  34. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  35. flags:
  36. - -buildvcs=false
  37. - id: cfssl-windows
  38. binary: cfssl
  39. env:
  40. - CC=x86_64-w64-mingw32-gcc
  41. - CXX=x86_64-w64-mingw32-g++
  42. goos:
  43. - windows
  44. goarch:
  45. - amd64
  46. main: ./cmd/cfssl
  47. ldflags:
  48. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  49. flags:
  50. - -buildvcs=false
  51. - id: cfssl-bundle-darwin
  52. binary: cfssl-bundle
  53. env:
  54. - CC=o64-clang
  55. - CXX=o64-clang++
  56. - CGO_ENABLED=1
  57. goos:
  58. - darwin
  59. goarch:
  60. - amd64
  61. main: ./cmd/cfssl-bundle
  62. ldflags:
  63. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  64. flags:
  65. - -buildvcs=false
  66. - id: cfssl-bundle-linux
  67. binary: cfssl-bundle
  68. goos:
  69. - linux
  70. goarch:
  71. - amd64
  72. - arm
  73. - arm64
  74. - s390x
  75. main: ./cmd/cfssl-bundle
  76. ldflags:
  77. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  78. flags:
  79. - -buildvcs=false
  80. - id: cfssl-bundle-windows
  81. binary: cfssl-bundle
  82. env:
  83. - CC=x86_64-w64-mingw32-gcc
  84. - CXX=x86_64-w64-mingw32-g++
  85. goos:
  86. - windows
  87. goarch:
  88. - amd64
  89. main: ./cmd/cfssl-bundle
  90. ldflags:
  91. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  92. flags:
  93. - -buildvcs=false
  94. - id: cfssl-certinfo-darwin
  95. binary: cfssl-certinfo
  96. env:
  97. - CC=o64-clang
  98. - CXX=o64-clang++
  99. - CGO_ENABLED=1
  100. goos:
  101. - darwin
  102. goarch:
  103. - amd64
  104. main: ./cmd/cfssl-certinfo
  105. ldflags:
  106. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  107. flags:
  108. - -buildvcs=false
  109. - id: cfssl-certinfo-linux
  110. binary: cfssl-certinfo
  111. goos:
  112. - linux
  113. goarch:
  114. - amd64
  115. - arm
  116. - arm64
  117. - s390x
  118. main: ./cmd/cfssl-certinfo
  119. ldflags:
  120. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  121. flags:
  122. - -buildvcs=false
  123. - id: cfssl-certinfo-windows
  124. binary: cfssl-certinfo
  125. env:
  126. - CC=x86_64-w64-mingw32-gcc
  127. - CXX=x86_64-w64-mingw32-g++
  128. goos:
  129. - windows
  130. goarch:
  131. - amd64
  132. main: ./cmd/cfssl-certinfo
  133. ldflags:
  134. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  135. flags:
  136. - -buildvcs=false
  137. - id: cfssl-newkey-darwin
  138. binary: cfssl-newkey
  139. env:
  140. - CC=o64-clang
  141. - CXX=o64-clang++
  142. - CGO_ENABLED=1
  143. goos:
  144. - darwin
  145. goarch:
  146. - amd64
  147. main: ./cmd/cfssl-newkey
  148. ldflags:
  149. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  150. flags:
  151. - -buildvcs=false
  152. - id: cfssl-newkey-linux
  153. binary: cfssl-newkey
  154. goos:
  155. - linux
  156. goarch:
  157. - amd64
  158. - arm
  159. - arm64
  160. - s390x
  161. main: ./cmd/cfssl-newkey
  162. ldflags:
  163. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  164. flags:
  165. - -buildvcs=false
  166. - id: cfssl-newkey-windows
  167. binary: cfssl-newkey
  168. env:
  169. - CC=x86_64-w64-mingw32-gcc
  170. - CXX=x86_64-w64-mingw32-g++
  171. goos:
  172. - windows
  173. goarch:
  174. - amd64
  175. main: ./cmd/cfssl-newkey
  176. ldflags:
  177. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  178. flags:
  179. - -buildvcs=false
  180. - id: cfssl-scan-darwin
  181. binary: cfssl-scan
  182. env:
  183. - CC=o64-clang
  184. - CXX=o64-clang++
  185. - CGO_ENABLED=1
  186. goos:
  187. - darwin
  188. goarch:
  189. - amd64
  190. main: ./cmd/cfssl-scan
  191. ldflags:
  192. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  193. flags:
  194. - -buildvcs=false
  195. - id: cfssl-scan-linux
  196. binary: cfssl-scan
  197. goos:
  198. - linux
  199. goarch:
  200. - amd64
  201. - arm
  202. - arm64
  203. - s390x
  204. main: ./cmd/cfssl-scan
  205. ldflags:
  206. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  207. flags:
  208. - -buildvcs=false
  209. - id: cfssl-scan-windows
  210. binary: cfssl-scan
  211. env:
  212. - CC=x86_64-w64-mingw32-gcc
  213. - CXX=x86_64-w64-mingw32-g++
  214. goos:
  215. - windows
  216. goarch:
  217. - amd64
  218. main: ./cmd/cfssl-scan
  219. ldflags:
  220. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  221. flags:
  222. - -buildvcs=false
  223. - id: cfssljson-darwin
  224. binary: cfssljson
  225. env:
  226. - CC=o64-clang
  227. - CXX=o64-clang++
  228. - CGO_ENABLED=1
  229. goos:
  230. - darwin
  231. goarch:
  232. - amd64
  233. main: ./cmd/cfssljson
  234. ldflags:
  235. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  236. flags:
  237. - -buildvcs=false
  238. - id: cfssljson-linux
  239. binary: cfssljson
  240. goos:
  241. - linux
  242. goarch:
  243. - amd64
  244. - arm
  245. - arm64
  246. - s390x
  247. main: ./cmd/cfssljson
  248. ldflags:
  249. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  250. flags:
  251. - -buildvcs=false
  252. - id: cfssljson-windows
  253. binary: cfssljson
  254. env:
  255. - CC=x86_64-w64-mingw32-gcc
  256. - CXX=x86_64-w64-mingw32-g++
  257. goos:
  258. - windows
  259. goarch:
  260. - amd64
  261. main: ./cmd/cfssljson
  262. ldflags:
  263. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  264. flags:
  265. - -buildvcs=false
  266. - id: mkbundle-darwin
  267. binary: mkbundle
  268. env:
  269. - CC=o64-clang
  270. - CXX=o64-clang++
  271. - CGO_ENABLED=1
  272. goos:
  273. - darwin
  274. goarch:
  275. - amd64
  276. main: ./cmd/mkbundle
  277. ldflags:
  278. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  279. flags:
  280. - -buildvcs=false
  281. - id: mkbundle-linux
  282. binary: mkbundle
  283. goos:
  284. - linux
  285. goarch:
  286. - amd64
  287. - arm
  288. - arm64
  289. - s390x
  290. main: ./cmd/mkbundle
  291. ldflags:
  292. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  293. flags:
  294. - -buildvcs=false
  295. - id: mkbundle-windows
  296. binary: mkbundle
  297. env:
  298. - CC=x86_64-w64-mingw32-gcc
  299. - CXX=x86_64-w64-mingw32-g++
  300. goos:
  301. - windows
  302. goarch:
  303. - amd64
  304. main: ./cmd/mkbundle
  305. ldflags:
  306. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  307. flags:
  308. - -buildvcs=false
  309. - id: multirootca-darwin
  310. binary: multirootca
  311. env:
  312. - CC=o64-clang
  313. - CXX=o64-clang++
  314. - CGO_ENABLED=1
  315. goos:
  316. - darwin
  317. goarch:
  318. - amd64
  319. main: ./cmd/multirootca
  320. ldflags:
  321. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  322. flags:
  323. - -buildvcs=false
  324. - id: multirootca-linux
  325. binary: multirootca
  326. goos:
  327. - linux
  328. goarch:
  329. - amd64
  330. - arm
  331. - arm64
  332. - s390x
  333. main: ./cmd/multirootca
  334. ldflags:
  335. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  336. flags:
  337. - -buildvcs=false
  338. - id: multirootca-windows
  339. binary: multirootca
  340. env:
  341. - CC=x86_64-w64-mingw32-gcc
  342. - CXX=x86_64-w64-mingw32-g++
  343. goos:
  344. - windows
  345. goarch:
  346. - amd64
  347. main: ./cmd/multirootca
  348. ldflags:
  349. - -s -w -X github.com/cloudflare/cfssl/cli/version.version={{.Version}}
  350. flags:
  351. - -buildvcs=false
  352. archives:
  353. - format: binary
  354. allow_different_binary_count: true # https://github.com/goreleaser/goreleaser/pull/1841
  355. release:
  356. github:
  357. owner: cloudflare
  358. name: cfssl
  359. prerelease: auto
  360. changelog:
  361. sort: asc