.goreleaser.debug.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # This is an example .goreleaser.yml file with some sensible defaults.
  2. # Make sure to check the documentation at https://goreleaser.com
  3. project_name: casaos
  4. before:
  5. hooks:
  6. - go generate
  7. - go run github.com/google/go-licenses@latest check . --disallowed_types=restricted
  8. - go mod tidy
  9. - go test -race -v ./...
  10. builds:
  11. - id: casaos-amd64
  12. binary: build/sysroot/usr/bin/casaos
  13. env:
  14. - CC=x86_64-linux-gnu-gcc
  15. gcflags:
  16. - all=-N -l
  17. ldflags:
  18. - -extldflags "-static"
  19. tags:
  20. - musl
  21. - netgo
  22. - osusergo
  23. goos:
  24. - linux
  25. goarch:
  26. - amd64
  27. - id: casaos-arm64
  28. binary: build/sysroot/usr/bin/casaos
  29. env:
  30. - CC=aarch64-linux-gnu-gcc
  31. gcflags:
  32. - all=-N -l
  33. ldflags:
  34. - -extldflags "-static"
  35. tags:
  36. - musl
  37. - netgo
  38. - osusergo
  39. goos:
  40. - linux
  41. goarch:
  42. - arm64
  43. - id: casaos-arm-7
  44. binary: build/sysroot/usr/bin/casaos
  45. env:
  46. - CC=arm-linux-gnueabihf-gcc
  47. gcflags:
  48. - all=-N -l
  49. ldflags:
  50. - -extldflags "-static"
  51. tags:
  52. - musl
  53. - netgo
  54. - osusergo
  55. goos:
  56. - linux
  57. goarch:
  58. - arm
  59. goarm:
  60. - "7"
  61. - id: casaos-migration-tool-amd64
  62. binary: build/sysroot/usr/bin/casaos-migration-tool
  63. main: ./cmd/migration-tool
  64. env:
  65. - CC=x86_64-linux-gnu-gcc
  66. gcflags:
  67. - all=-N -l
  68. ldflags:
  69. - -extldflags "-static"
  70. tags:
  71. - musl
  72. - netgo
  73. - osusergo
  74. goos:
  75. - linux
  76. goarch:
  77. - amd64
  78. - id: casaos-migration-tool-arm64
  79. binary: build/sysroot/usr/bin/casaos-migration-tool
  80. main: ./cmd/migration-tool
  81. env:
  82. - CC=aarch64-linux-gnu-gcc
  83. gcflags:
  84. - all=-N -l
  85. ldflags:
  86. - -extldflags "-static"
  87. tags:
  88. - musl
  89. - netgo
  90. - osusergo
  91. goos:
  92. - linux
  93. goarch:
  94. - arm64
  95. - id: casaos-migration-tool-arm-7
  96. binary: build/sysroot/usr/bin/casaos-migration-tool
  97. main: ./cmd/migration-tool
  98. env:
  99. - CC=arm-linux-gnueabihf-gcc
  100. gcflags:
  101. - all=-N -l
  102. ldflags:
  103. - -extldflags "-static"
  104. tags:
  105. - musl
  106. - netgo
  107. - osusergo
  108. goos:
  109. - linux
  110. goarch:
  111. - arm
  112. goarm:
  113. - "7"
  114. archives:
  115. - name_template: >-
  116. {{ .Os }}-{{- if eq .Arch "arm" }}arm-7{{- else }}{{ .Arch }}{{- end }}-{{ .ProjectName }}-v{{ .Version }}
  117. id: casaos
  118. builds:
  119. - casaos-amd64
  120. - casaos-arm64
  121. - casaos-arm-7
  122. files:
  123. - build/**/*
  124. - name_template: >-
  125. {{ .Os }}-{{- if eq .Arch "arm" }}arm-7{{- else }}{{ .Arch }}{{- end }}-{{ .ProjectName }}-migration-tool-v{{ .Version }}
  126. id: casaos-migration-tool
  127. builds:
  128. - casaos-migration-tool-amd64
  129. - casaos-migration-tool-arm64
  130. - casaos-migration-tool-arm-7
  131. files:
  132. - build/sysroot/etc/**/*
  133. checksum:
  134. name_template: "checksums.txt"
  135. snapshot:
  136. name_template: "{{ incpatch .Version }}"
  137. changelog:
  138. sort: asc
  139. filters:
  140. exclude:
  141. - "^docs:"
  142. - "^test:"
  143. # release:
  144. # github:
  145. # owner: IceWhaleTech
  146. # name: CasaOS
  147. # draft: true
  148. # prerelease: auto
  149. # mode: replace
  150. # name_template: "v{{ .Version }}"
  151. release:
  152. github:
  153. owner: IceWhaleTech
  154. name: CasaOS
  155. draft: true
  156. prerelease: auto
  157. mode: replace
  158. name_template: "v{{ .Version }}"