.goreleaser.yml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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. targets:
  14. - darwin_amd64
  15. - darwin_arm64
  16. - freebsd_amd64
  17. - linux_386
  18. - linux_amd64
  19. - linux_arm64
  20. - linux_arm_6
  21. - linux_arm_7
  22. - windows_amd64
  23. flags:
  24. - -trimpath
  25. main: ./cmd/step-ca/main.go
  26. binary: bin/step-ca
  27. ldflags:
  28. - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
  29. -
  30. id: step-cloudkms-init
  31. env:
  32. - CGO_ENABLED=0
  33. targets:
  34. - darwin_amd64
  35. - darwin_arm64
  36. - freebsd_amd64
  37. - linux_386
  38. - linux_amd64
  39. - linux_arm64
  40. - linux_arm_6
  41. - linux_arm_7
  42. - windows_amd64
  43. flags:
  44. - -trimpath
  45. main: ./cmd/step-cloudkms-init/main.go
  46. binary: bin/step-cloudkms-init
  47. ldflags:
  48. - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
  49. -
  50. id: step-awskms-init
  51. env:
  52. - CGO_ENABLED=0
  53. targets:
  54. - darwin_amd64
  55. - darwin_arm64
  56. - freebsd_amd64
  57. - linux_386
  58. - linux_amd64
  59. - linux_arm64
  60. - linux_arm_6
  61. - linux_arm_7
  62. - windows_amd64
  63. flags:
  64. - -trimpath
  65. main: ./cmd/step-awskms-init/main.go
  66. binary: bin/step-awskms-init
  67. ldflags:
  68. - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
  69. archives:
  70. -
  71. # Can be used to change the archive formats for specific GOOSs.
  72. # Most common use case is to archive as zip on Windows.
  73. # Default is empty.
  74. name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
  75. format_overrides:
  76. - goos: windows
  77. format: zip
  78. wrap_in_directory: "{{ .ProjectName }}_{{ .Version }}"
  79. files:
  80. - README.md
  81. - LICENSE
  82. source:
  83. enabled: true
  84. name_template: '{{ .ProjectName }}_{{ .Version }}'
  85. checksum:
  86. name_template: 'checksums.txt'
  87. extra_files:
  88. - glob: ./.releases/*
  89. signs:
  90. - cmd: cosign
  91. stdin: '{{ .Env.COSIGN_PWD }}'
  92. args: ["sign-blob", "-key=/tmp/cosign.key", "-output=${signature}", "${artifact}"]
  93. artifacts: all
  94. snapshot:
  95. name_template: "{{ .Tag }}-next"
  96. release:
  97. # Repo in which the release will be created.
  98. # Default is extracted from the origin remote URL or empty if its private hosted.
  99. # Note: it can only be one: either github, gitlab or gitea
  100. github:
  101. owner: smallstep
  102. name: certificates
  103. # IDs of the archives to use.
  104. # Defaults to all.
  105. #ids:
  106. # - foo
  107. # - bar
  108. # If set to true, will not auto-publish the release.
  109. # Default is false.
  110. draft: false
  111. # If set to auto, will mark the release as not ready for production
  112. # in case there is an indicator for this in the tag e.g. v1.0.0-rc1
  113. # If set to true, will mark the release as not ready for production.
  114. # Default is false.
  115. prerelease: auto
  116. # You can change the name of the release.
  117. # Default is `{{.Tag}}`
  118. name_template: "Step CA {{ .Tag }} ({{ .Env.RELEASE_DATE }})"
  119. # Header template for the release body.
  120. # Defaults to empty.
  121. header: |
  122. ## Official Release Artifacts
  123. #### Linux
  124. - 📦 [step-ca_linux_{{ .Version }}_amd64.tar.gz](https://dl.step.sm/gh-release/certificates/gh-release-header/{{ .Tag }}/step-ca_linux_{{ .Version }}_amd64.tar.gz)
  125. - 📦 [step-ca_{{ .Env.DEB_VERSION }}_amd64.deb](https://dl.step.sm/gh-release/certificates/gh-release-header/{{ .Tag }}/step-ca_{{ .Env.DEB_VERSION }}_amd64.deb)
  126. #### OSX Darwin
  127. - 📦 [step-ca_darwin_{{ .Version }}_amd64.tar.gz](https://dl.step.sm/gh-release/certificates/gh-release-header/{{ .Tag }}/step-ca_darwin_{{ .Version }}_amd64.tar.gz)
  128. - 📦 [step-ca_darwin_{{ .Version }}_arm64.tar.gz](https://dl.step.sm/gh-release/certificates/gh-release-header/{{ .Tag }}/step-ca_darwin_{{ .Version }}_arm64.tar.gz)
  129. #### Windows
  130. - 📦 [step-ca_windows_{{ .Version }}_arm64.zip](https://dl.step.sm/gh-release/certificates/gh-release-header/{{ .Tag }}/step-ca_windows_{{ .Version }}_amd64.zip)
  131. For more builds across platforms and architectures, see the `Assets` section below.
  132. And for packaged versions (Docker, k8s, Homebrew), see our [installation docs](https://smallstep.com/docs/step-ca/installation).
  133. Don't see the artifact you need? Open an issue [here](https://github.com/smallstep/certificates/issues/new/choose).
  134. ## Signatures and Checksums
  135. `step-ca` uses [sigstore/cosign](https://github.com/sigstore/cosign) for signing and verifying release artifacts.
  136. Below is an example using `cosign` to verify a release artifact:
  137. ```
  138. cosign verify-blob \
  139. -key https://raw.githubusercontent.com/smallstep/certificates/master/cosign.pub \
  140. -signature ~/Downloads/step-ca_darwin_{{ .Version }}_amd64.tar.gz.sig
  141. ~/Downloads/step-ca_darwin_{{ .Version }}_amd64.tar.gz
  142. ```
  143. The `checksums.txt` file (in the `Assets` section below) contains a checksum for every artifact in the release.
  144. # Footer template for the release body.
  145. # Defaults to empty.
  146. footer: |
  147. ## Thanks!
  148. Those were the changes on {{ .Tag }}!
  149. Come join us on [Discord](https://discord.gg/X2RKGwEbV9) to ask questions, chat about PKI, or get a sneak peak at the freshest PKI memes.
  150. # You can disable this pipe in order to not upload any artifacts.
  151. # Defaults to false.
  152. #disable: true
  153. # You can add extra pre-existing files to the release.
  154. # The filename on the release will be the last part of the path (base). If
  155. # another file with the same name exists, the latest one found will be used.
  156. # Defaults to empty.
  157. extra_files:
  158. - glob: ./.releases/*
  159. #extra_files:
  160. # - glob: ./path/to/file.txt
  161. # - glob: ./glob/**/to/**/file/**/*
  162. # - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
  163. scoop:
  164. # Template for the url which is determined by the given Token (github or gitlab)
  165. # Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
  166. # Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}"
  167. # Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
  168. url_template: "http://github.com/smallstep/certificates/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
  169. # Repository to push the app manifest to.
  170. bucket:
  171. owner: smallstep
  172. name: scoop-bucket
  173. # Git author used to commit to the repository.
  174. # Defaults are shown.
  175. commit_author:
  176. name: goreleaserbot
  177. email: goreleaser@smallstep.com
  178. # The project name and current git tag are used in the format string.
  179. commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
  180. # Your app's homepage.
  181. # Default is empty.
  182. homepage: "https://smallstep.com/docs/step-ca"
  183. # Skip uploads for prerelease.
  184. skip_upload: auto
  185. # Your app's description.
  186. # Default is empty.
  187. description: "A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH."
  188. # Your app's license
  189. # Default is empty.
  190. license: "Apache-2.0"
  191. #dockers:
  192. # - dockerfile: docker/Dockerfile
  193. # goos: linux
  194. # goarch: amd64
  195. # use_buildx: true
  196. # image_templates:
  197. # - "smallstep/step-cli:latest"
  198. # - "smallstep/step-cli:{{ .Tag }}"
  199. # build_flag_templates:
  200. # - "--platform=linux/amd64"
  201. # - dockerfile: docker/Dockerfile
  202. # goos: linux
  203. # goarch: 386
  204. # use_buildx: true
  205. # image_templates:
  206. # - "smallstep/step-cli:latest"
  207. # - "smallstep/step-cli:{{ .Tag }}"
  208. # build_flag_templates:
  209. # - "--platform=linux/386"
  210. # - dockerfile: docker/Dockerfile
  211. # goos: linux
  212. # goarch: arm
  213. # goarm: 7
  214. # use_buildx: true
  215. # image_templates:
  216. # - "smallstep/step-cli:latest"
  217. # - "smallstep/step-cli:{{ .Tag }}"
  218. # build_flag_templates:
  219. # - "--platform=linux/arm/v7"
  220. # - dockerfile: docker/Dockerfile
  221. # goos: linux
  222. # goarch: arm64
  223. # use_buildx: true
  224. # image_templates:
  225. # - "smallstep/step-cli:latest"
  226. # - "smallstep/step-cli:{{ .Tag }}"
  227. # build_flag_templates:
  228. # - "--platform=linux/arm64/v8"