2022-09-06 06:28:49 +00:00
|
|
|
# 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:
|
|
|
|
- CC=x86_64-linux-gnu-gcc
|
|
|
|
ldflags:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -extldflags "-static"
|
|
|
|
tags:
|
|
|
|
- musl
|
|
|
|
- netgo
|
2022-11-30 05:10:05 +00:00
|
|
|
- osusergo
|
2022-09-06 06:28:49 +00:00
|
|
|
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:
|
|
|
|
- CC=aarch64-linux-gnu-gcc
|
|
|
|
ldflags:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -extldflags "-static"
|
|
|
|
tags:
|
|
|
|
- musl
|
|
|
|
- netgo
|
2022-11-30 05:10:05 +00:00
|
|
|
- osusergo
|
2022-09-06 06:28:49 +00:00
|
|
|
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:
|
|
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
|
|
ldflags:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -extldflags "-static"
|
|
|
|
tags:
|
|
|
|
- musl
|
|
|
|
- netgo
|
2022-11-30 05:10:05 +00:00
|
|
|
- osusergo
|
2022-09-06 06:28:49 +00:00
|
|
|
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:
|
|
|
|
- CC=x86_64-linux-gnu-gcc
|
|
|
|
ldflags:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -extldflags "-static"
|
|
|
|
tags:
|
|
|
|
- musl
|
|
|
|
- netgo
|
2022-11-30 05:10:05 +00:00
|
|
|
- osusergo
|
2022-09-06 06:28:49 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- id: casaos-migration-tool-arm64
|
|
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
|
|
main: ./cmd/migration-tool
|
|
|
|
env:
|
|
|
|
- CC=aarch64-linux-gnu-gcc
|
|
|
|
ldflags:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -extldflags "-static"
|
|
|
|
tags:
|
|
|
|
- musl
|
|
|
|
- netgo
|
2022-11-30 05:10:05 +00:00
|
|
|
- osusergo
|
2022-09-06 06:28:49 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- arm64
|
|
|
|
- id: casaos-migration-tool-arm-7
|
|
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
|
|
main: ./cmd/migration-tool
|
|
|
|
env:
|
|
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
|
|
ldflags:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
- -extldflags "-static"
|
|
|
|
tags:
|
|
|
|
- musl
|
|
|
|
- netgo
|
2022-11-30 05:10:05 +00:00
|
|
|
- osusergo
|
2022-09-06 06:28:49 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- arm
|
|
|
|
goarm:
|
2022-10-20 06:25:26 +00:00
|
|
|
- "7"
|
2022-09-06 06:28:49 +00:00
|
|
|
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:
|
2022-10-20 06:25:26 +00:00
|
|
|
owner: IceWhaleTech
|
|
|
|
name: CasaOS
|
2022-09-06 06:28:49 +00:00
|
|
|
draft: true
|
|
|
|
prerelease: auto
|
|
|
|
mode: replace
|
2022-10-20 06:25:26 +00:00
|
|
|
name_template: "v{{ .Version }}"
|