2024-11-18 11:33:25 +08:00
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
|
|
# vim: set ts=2 sw=2 tw=0 fo=jcroql
|
|
|
|
version: 2
|
|
|
|
|
2023-05-24 16:46:28 +08:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
# - export NODE_OPTIONS="--max-old-space-size=8192"
|
|
|
|
# - make build_web
|
|
|
|
- chmod +x ./script.sh
|
|
|
|
- ./script.sh
|
|
|
|
- sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl
|
|
|
|
- go mod tidy
|
|
|
|
|
|
|
|
builds:
|
|
|
|
- main: ./cmd/server/main.go
|
|
|
|
binary: 1panel
|
|
|
|
flags:
|
2024-04-01 15:22:51 +08:00
|
|
|
- -tags=xpack
|
2023-05-24 16:46:28 +08:00
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -w -s
|
2023-06-16 18:35:57 +08:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
2023-05-24 16:46:28 +08:00
|
|
|
goos:
|
|
|
|
- linux
|
2023-05-25 21:42:31 +08:00
|
|
|
goarm:
|
|
|
|
- 7
|
2023-05-24 16:46:28 +08:00
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- arm
|
2023-05-25 15:48:00 +08:00
|
|
|
- ppc64le
|
|
|
|
- s390x
|
2023-05-24 16:46:28 +08:00
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
2023-05-30 16:52:57 +08:00
|
|
|
name_template: "1panel-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
|
2023-05-24 16:46:28 +08:00
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- 1pctl
|
|
|
|
- 1panel.service
|
|
|
|
- install.sh
|
|
|
|
- README.md
|
|
|
|
- LICENSE
|
2024-11-18 11:33:25 +08:00
|
|
|
|
2023-05-24 16:46:28 +08:00
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
|
2024-11-18 11:33:25 +08:00
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- "^docs:"
|
|
|
|
- "^test:"
|