.goreleaser.yml 7.0 KB

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