.goreleaser.yml 7.3 KB

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