.goreleaser.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. # This is an example .goreleaser.yml file with some sane defaults.
  2. # Make sure to check the documentation at http://goreleaser.com
  3. project_name: step-ca
  4. before:
  5. hooks:
  6. # You may remove this if you don't use go modules.
  7. - go mod download
  8. builds:
  9. -
  10. id: step-ca
  11. env:
  12. - CGO_ENABLED=0
  13. goos:
  14. - linux
  15. - darwin
  16. - windows
  17. goarch:
  18. - amd64
  19. - arm
  20. - arm64
  21. - 386
  22. goarm:
  23. - 6
  24. - 7
  25. ignore:
  26. - goos: windows
  27. goarch: 386
  28. - goos: windows
  29. goarm: 6
  30. - goos: windows
  31. goarm: 7
  32. flags:
  33. - -trimpath
  34. main: ./cmd/step-ca/main.go
  35. binary: bin/step-ca
  36. ldflags:
  37. - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
  38. -
  39. id: step-cloudkms-init
  40. env:
  41. - CGO_ENABLED=0
  42. goos:
  43. - linux
  44. - darwin
  45. - windows
  46. goarch:
  47. - amd64
  48. - arm
  49. - arm64
  50. - 386
  51. goarm:
  52. - 6
  53. - 7
  54. ignore:
  55. - goos: windows
  56. goarch: 386
  57. - goos: windows
  58. goarm: 6
  59. - goos: windows
  60. goarm: 7
  61. flags:
  62. - -trimpath
  63. main: ./cmd/step-cloudkms-init/main.go
  64. binary: bin/step-cloudkms-init
  65. ldflags:
  66. - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
  67. -
  68. id: step-awskms-init
  69. env:
  70. - CGO_ENABLED=0
  71. goos:
  72. - linux
  73. - darwin
  74. - windows
  75. goarch:
  76. - amd64
  77. - arm
  78. - arm64
  79. - 386
  80. goarm:
  81. - 6
  82. - 7
  83. ignore:
  84. - goos: windows
  85. goarch: 386
  86. - goos: windows
  87. goarm: 6
  88. - goos: windows
  89. goarm: 7
  90. flags:
  91. - -trimpath
  92. main: ./cmd/step-awskms-init/main.go
  93. binary: bin/step-awskms-init
  94. ldflags:
  95. - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
  96. archives:
  97. -
  98. # Can be used to change the archive formats for specific GOOSs.
  99. # Most common use case is to archive as zip on Windows.
  100. # Default is empty.
  101. name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
  102. format_overrides:
  103. - goos: windows
  104. format: zip
  105. wrap_in_directory: "{{ .ProjectName }}_{{ .Version }}"
  106. files:
  107. - README.md
  108. - LICENSE
  109. source:
  110. enabled: true
  111. name_template: '{{ .ProjectName }}_{{ .Version }}'
  112. checksum:
  113. name_template: 'checksums.txt'
  114. snapshot:
  115. name_template: "{{ .Tag }}-next"
  116. release:
  117. # Repo in which the release will be created.
  118. # Default is extracted from the origin remote URL or empty if its private hosted.
  119. # Note: it can only be one: either github, gitlab or gitea
  120. github:
  121. owner: smallstep
  122. name: certificates
  123. # IDs of the archives to use.
  124. # Defaults to all.
  125. #ids:
  126. # - foo
  127. # - bar
  128. # If set to true, will not auto-publish the release.
  129. # Default is false.
  130. draft: false
  131. # If set to auto, will mark the release as not ready for production
  132. # in case there is an indicator for this in the tag e.g. v1.0.0-rc1
  133. # If set to true, will mark the release as not ready for production.
  134. # Default is false.
  135. prerelease: auto
  136. # You can change the name of the release.
  137. # Default is `{{.Tag}}`
  138. #name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
  139. # You can disable this pipe in order to not upload any artifacts.
  140. # Defaults to false.
  141. #disable: true
  142. # You can add extra pre-existing files to the release.
  143. # The filename on the release will be the last part of the path (base). If
  144. # another file with the same name exists, the latest one found will be used.
  145. # Defaults to empty.
  146. #extra_files:
  147. # - glob: ./path/to/file.txt
  148. # - glob: ./glob/**/to/**/file/**/*
  149. # - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
  150. scoop:
  151. # Template for the url which is determined by the given Token (github or gitlab)
  152. # Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
  153. # Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}"
  154. # Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
  155. url_template: "http://github.com/smallstep/certificates/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
  156. # Repository to push the app manifest to.
  157. bucket:
  158. owner: smallstep
  159. name: scoop-bucket
  160. # Git author used to commit to the repository.
  161. # Defaults are shown.
  162. commit_author:
  163. name: goreleaserbot
  164. email: goreleaser@smallstep.com
  165. # The project name and current git tag are used in the format string.
  166. commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
  167. # Your app's homepage.
  168. # Default is empty.
  169. homepage: "https://smallstep.com/docs/step-ca"
  170. # Skip uploads for prerelease.
  171. skip_upload: auto
  172. # Your app's description.
  173. # Default is empty.
  174. description: "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH."
  175. # Your app's license
  176. # Default is empty.
  177. license: "Apache-2.0"
  178. #dockers:
  179. # - dockerfile: docker/Dockerfile
  180. # goos: linux
  181. # goarch: amd64
  182. # use_buildx: true
  183. # image_templates:
  184. # - "smallstep/step-cli:latest"
  185. # - "smallstep/step-cli:{{ .Tag }}"
  186. # build_flag_templates:
  187. # - "--platform=linux/amd64"
  188. # - dockerfile: docker/Dockerfile
  189. # goos: linux
  190. # goarch: 386
  191. # use_buildx: true
  192. # image_templates:
  193. # - "smallstep/step-cli:latest"
  194. # - "smallstep/step-cli:{{ .Tag }}"
  195. # build_flag_templates:
  196. # - "--platform=linux/386"
  197. # - dockerfile: docker/Dockerfile
  198. # goos: linux
  199. # goarch: arm
  200. # goarm: 7
  201. # use_buildx: true
  202. # image_templates:
  203. # - "smallstep/step-cli:latest"
  204. # - "smallstep/step-cli:{{ .Tag }}"
  205. # build_flag_templates:
  206. # - "--platform=linux/arm/v7"
  207. # - dockerfile: docker/Dockerfile
  208. # goos: linux
  209. # goarch: arm64
  210. # use_buildx: true
  211. # image_templates:
  212. # - "smallstep/step-cli:latest"
  213. # - "smallstep/step-cli:{{ .Tag }}"
  214. # build_flag_templates:
  215. # - "--platform=linux/arm64/v8"