.goreleaser.debug.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-v{{ .Version }}"
  116. id: casaos
  117. builds:
  118. - casaos-amd64
  119. - casaos-arm64
  120. - casaos-arm-7
  121. replacements:
  122. arm: arm-7
  123. files:
  124. - build/**/*
  125. - name_template: "{{ .Os }}-{{ .Arch }}-{{ .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. replacements:
  132. arm: arm-7
  133. files:
  134. - build/sysroot/etc/**/*
  135. checksum:
  136. name_template: "checksums.txt"
  137. snapshot:
  138. name_template: "{{ incpatch .Version }}"
  139. changelog:
  140. sort: asc
  141. filters:
  142. exclude:
  143. - "^docs:"
  144. - "^test:"
  145. # release:
  146. # github:
  147. # owner: IceWhaleTech
  148. # name: CasaOS
  149. # draft: true
  150. # prerelease: auto
  151. # mode: replace
  152. # name_template: "v{{ .Version }}"
  153. release:
  154. github:
  155. owner: IceWhaleTech
  156. name: CasaOS
  157. draft: true
  158. prerelease: auto
  159. mode: replace
  160. name_template: "v{{ .Version }}"