70ba4d5e3d
* Add registration route * add route registration * remove ui * 0.3.6 build scaffold (#473) * wip * wip * wip * Merge Branches * Update helper.sh * add goreleaser * fix migration not working for LEGACY_WITHOUT_VERSION (#479) * wip * wip * add error handling to migration script * add migration tool * Adjusting shell script location * update disk user authentication method * delayed port modification * Update system.go Co-authored-by: Tiger Wang (王豫) <tigerwang@outlook.com>
167 lines
No EOL
3.5 KiB
YAML
167 lines
No EOL
3.5 KiB
YAML
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
# Make sure to check the documentation at https://goreleaser.com
|
|
project_name: casaos
|
|
before:
|
|
hooks:
|
|
# You may remove this if you don't use go modules.
|
|
- go mod tidy
|
|
builds:
|
|
- id: casaos-amd64
|
|
binary: build/sysroot/usr/bin/casaos
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=x86_64-linux-gnu-gcc
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -extldflags "-static"
|
|
tags:
|
|
- musl
|
|
- netgo
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
hooks:
|
|
post:
|
|
- find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest
|
|
- id: casaos-arm64
|
|
binary: build/sysroot/usr/bin/casaos
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=aarch64-linux-gnu-gcc
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -extldflags "-static"
|
|
tags:
|
|
- musl
|
|
- netgo
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm64
|
|
hooks:
|
|
post:
|
|
- find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest
|
|
- id: casaos-arm-7
|
|
binary: build/sysroot/usr/bin/casaos
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -extldflags "-static"
|
|
tags:
|
|
- musl
|
|
- netgo
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm
|
|
goarm:
|
|
- "7"
|
|
hooks:
|
|
post:
|
|
- find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest
|
|
- id: casaos-migration-tool-amd64
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=x86_64-linux-gnu-gcc
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -extldflags "-static"
|
|
tags:
|
|
- musl
|
|
- netgo
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- id: casaos-migration-tool-arm64
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=aarch64-linux-gnu-gcc
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -extldflags "-static"
|
|
tags:
|
|
- musl
|
|
- netgo
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm64
|
|
- id: casaos-migration-tool-arm-7
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -extldflags "-static"
|
|
tags:
|
|
- musl
|
|
- netgo
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm
|
|
goarm:
|
|
- "7"
|
|
archives:
|
|
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-v{{ .Version }}"
|
|
id: casaos
|
|
builds:
|
|
- casaos-amd64
|
|
- casaos-arm64
|
|
- casaos-arm-7
|
|
replacements:
|
|
arm: arm-7
|
|
files:
|
|
- build/**/*
|
|
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-migration-tool-v{{ .Version }}"
|
|
id: casaos-migration-tool
|
|
builds:
|
|
- casaos-migration-tool-amd64
|
|
- casaos-migration-tool-arm64
|
|
- casaos-migration-tool-arm-7
|
|
replacements:
|
|
arm: arm-7
|
|
files:
|
|
- build/sysroot/etc/**/*
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
snapshot:
|
|
name_template: "{{ incpatch .Version }}"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
# release:
|
|
# github:
|
|
# owner: IceWhaleTech
|
|
# name: CasaOS
|
|
# draft: true
|
|
# prerelease: auto
|
|
# mode: replace
|
|
# name_template: "v{{ .Version }}"
|
|
release:
|
|
github:
|
|
owner: LinkLeong
|
|
name: casaos-alpha
|
|
draft: true
|
|
prerelease: auto
|
|
mode: replace
|
|
name_template: "v{{ .Version }}" |