Files
NextZen-UserService/.goreleaser.yaml
T

151 lines
3.3 KiB
YAML
Raw Normal View History

2022-08-06 22:52:14 -04: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-user-service
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- id: casaos-user-service-amd64
2022-08-15 18:58:08 -04:00
binary: build/sysroot/usr/bin/casaos-user-service
2022-08-06 22:52:14 -04:00
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
ldflags:
- -s
- -w
- -extldflags "-static"
tags:
- musl
- netgo
2022-08-06 22:52:14 -04:00
goos:
- linux
goarch:
- amd64
- id: casaos-user-service-arm64
2022-08-15 18:58:08 -04:00
binary: build/sysroot/usr/bin/casaos-user-service
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
ldflags:
- -s
- -w
- -extldflags "-static"
tags:
- musl
- netgo
goos:
- linux
goarch:
2022-08-06 22:52:14 -04:00
- arm64
- id: casaos-user-service-arm-7
2022-08-15 18:58:08 -04:00
binary: build/sysroot/usr/bin/casaos-user-service
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabihf-gcc
ldflags:
- -s
- -w
- -extldflags "-static"
tags:
- musl
- netgo
goos:
- linux
goarch:
- arm
goarm:
- "7"
- id: casaos-user-service-migration-tool-amd64
2022-08-15 18:58:08 -04:00
binary: build/sysroot/usr/bin/casaos-user-service-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-user-service-migration-tool-arm64
2022-08-15 18:58:08 -04:00
binary: build/sysroot/usr/bin/casaos-user-service-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-user-service-migration-tool-arm-7
2022-08-15 18:58:08 -04:00
binary: build/sysroot/usr/bin/casaos-user-service-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:
2022-08-06 22:52:14 -04:00
- arm
goarm:
- "7"
2022-08-06 22:52:14 -04:00
archives:
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-v{{ .Version }}"
id: casaos-user-service
builds:
- casaos-user-service-amd64
- casaos-user-service-arm64
- casaos-user-service-arm-7
replacements:
arm: arm-7
files:
- build/**/*
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}-migration-tool-v{{ .Version }}"
id: casaos-user-service-migration-tool
builds:
- casaos-user-service-migration-tool-amd64
- casaos-user-service-migration-tool-arm64
- casaos-user-service-migration-tool-arm-7
2022-08-06 22:52:14 -04:00
replacements:
arm: arm-7
files:
2022-08-15 18:58:08 -04:00
- build/sysroot/etc/**/*
2022-08-06 22:52:14 -04:00
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: IceWhaleTech
name: CasaOS-UserService
draft: true
prerelease: auto
mode: replace
name_template: "v{{ .Version }}"