github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/.goreleaser.yaml (about) 1 project_name: kbcli 2 3 release: 4 prerelease: true 5 github: 6 owner: apecloud 7 name: kbcli 8 9 before: 10 hooks: 11 - go mod tidy 12 - make test-go-generate 13 - make generate 14 15 env: 16 - K3D_VERSION=5.4.4 17 - K3S_IMG_TAG=v1.23.8-k3s1 18 19 builds: 20 - main: cmd/cli/main.go 21 id: kbcli 22 binary: kbcli 23 goos: 24 - linux 25 - windows 26 - darwin 27 goarch: 28 - amd64 29 - arm64 30 env: 31 - ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.21 32 - CGO_ENABLED=0 33 tags: 34 - containers_image_openpgp 35 ldflags: 36 - -s -w -X github.com/apecloud/kubeblocks/version.BuildDate={{ .Date }} 37 - -s -w -X github.com/apecloud/kubeblocks/version.GitCommit={{ .FullCommit }} 38 - -s -w -X github.com/apecloud/kubeblocks/version.Version={{ .Version }} 39 - -s -w -X github.com/apecloud/kubeblocks/version.DefaultKubeBlocksVersion={{ .Version }} 40 - -s -w -X github.com/apecloud/kubeblocks/version.GitVersion={{ .Tag }} 41 - -s -w -X github.com/apecloud/kubeblocks/version.K3sImageTag={{ .Env.K3S_IMG_TAG }} 42 - -s -w -X github.com/apecloud/kubeblocks/version.K3dVersion={{ .Env.K3D_VERSION }} 43 44 archives: 45 - format: tar.gz 46 wrap_in_directory: '{{ .Os }}-{{ .Arch }}' 47 name_template: >- 48 {{- .ProjectName }}- 49 {{- .Os }}- 50 {{- if eq .Arch "amd64" }}amd64 51 {{- else if eq .Arch "386" }}i386 52 {{- else }}{{ .Arch }}{{ end }}- 53 {{- .Tag }} 54 format_overrides: 55 - goos: windows 56 format: zip 57 58 nfpms: 59 - 60 id: kbcli 61 package_name: kbcli 62 file_name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}-{{ .Tag }}" 63 builds: 64 - kbcli 65 vendor: ApeCloud Inc. 66 homepage: kubeblocks.io 67 maintainer: ApeCloud Inc. 68 description: A CLI tool for kubeblocks 69 license: AGPL-3.0 70 release: "1" 71 formats: 72 - deb 73 - rpm 74 dependencies: 75 - git 76 - zsh 77 # Path that the binaries should be installed. 78 bindir: /usr/bin 79 80 checksum: 81 name_template: '{{ .ProjectName }}-checksums.txt' 82 algorithm: sha256 83 84 signs: 85 - artifacts: checksum 86 args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"] 87 88 snapshot: 89 name_template: "{{ .Version }}" 90 91 changelog: 92 sort: asc 93 filters: 94 exclude: 95 - '^docs:' 96 - '^test:' 97 98 # The lines beneath this are called `modelines`. See `:help modeline` 99 # Feel free to remove those if you don't want/use them. 100 # yaml-language-server: $schema=https://goreleaser.com/static/schema.json 101 # vim: set ts=2 sw=2 tw=0 fo=cnqoj