2023-05-24 08:46:28 +00:00
|
|
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
|
|
# Make sure to check the documentation at https://goreleaser.com
|
|
|
|
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 07:22:51 +00:00
|
|
|
- -tags=xpack
|
2023-05-24 08:46:28 +00:00
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -w -s
|
2023-06-16 10:35:57 +00:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
2023-05-24 08:46:28 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
2023-05-25 13:42:31 +00:00
|
|
|
goarm:
|
|
|
|
- 7
|
2023-05-24 08:46:28 +00:00
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- arm
|
2023-05-25 07:48:00 +00:00
|
|
|
- ppc64le
|
|
|
|
- s390x
|
2023-05-24 08:46:28 +00:00
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
2023-05-30 08:52:57 +00:00
|
|
|
name_template: "1panel-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
|
2023-05-24 08:46:28 +00:00
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- 1pctl
|
|
|
|
- 1panel.service
|
|
|
|
- install.sh
|
|
|
|
- README.md
|
|
|
|
- LICENSE
|
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
2024-08-20 10:47:49 +00:00
|
|
|
version_template: "{{ incpatch .Version }}-next"
|
2023-05-24 08:46:28 +00:00
|
|
|
release:
|
|
|
|
draft: true
|
|
|
|
mode: append
|
|
|
|
extra_files:
|
|
|
|
- glob: dist/*.tar.gz
|
|
|
|
- glob: dist/checksums.txt
|
|
|
|
name_template: "Release {{.Tag}}"
|
|
|
|
|
|
|
|
# The lines beneath this are called `modelines`. See `:help modeline`
|
|
|
|
# Feel free to remove those if you don't want/use them.
|
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
2023-05-30 08:52:57 +00:00
|
|
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|