mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
109 lines
2.6 KiB
YAML
109 lines
2.6 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-user-service
|
|
before:
|
|
hooks:
|
|
# You may remove this if you don't use go modules.
|
|
- go mod tidy
|
|
builds:
|
|
- id: casaos-user-service-amd64
|
|
binary: build/usr/bin/casaos-user-service
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=x86_64-linux-gnu-gcc-10
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- id: casaos-user-service-arm64
|
|
binary: build/usr/bin/casaos-user-service
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=aarch64-linux-gnu-gcc-10
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm64
|
|
- id: casaos-user-service-arm-7
|
|
binary: build/usr/bin/casaos-user-service
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=arm-linux-gnueabihf-gcc-10
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm
|
|
goarm:
|
|
- 7
|
|
- id: casaos-user-service-migration-tool-amd64
|
|
binary: build/usr/bin/casaos-user-service-migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=x86_64-linux-gnu-gcc-10
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- id: casaos-user-service-migration-tool-arm64
|
|
binary: build/usr/bin/casaos-user-service-migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=aarch64-linux-gnu-gcc-10
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm64
|
|
- id: casaos-user-service-migration-tool-arm-7
|
|
binary: build/usr/bin/casaos-user-service-migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=arm-linux-gnueabihf-gcc-10
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm
|
|
goarm:
|
|
- 7
|
|
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
|
|
replacements:
|
|
arm: arm-7
|
|
files:
|
|
- build/**/*
|
|
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 }}"
|