1 Star 0 Fork 109

wwg/jenkins-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.goreleaser.yml 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
rick 提交于 2022-08-05 14:58 . Ignore not support arch pair
# Official documentation at http://goreleaser.com
project_name: jcli
builds:
- env:
- CGO_ENABLED=0
binary: jcli
goarch:
- amd64
- arm64
goos:
- windows
- linux
- darwin
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
hooks:
post:
- upx "{{ .Path }}"
ldflags:
- -X github.com/linuxsuren/cobra-extension/version.version={{.Version}}
- -X github.com/linuxsuren/cobra-extension/version.commit={{.ShortCommit}}
- -X github.com/linuxsuren/cobra-extension/version.date={{.Date}}
- -w
- -s
dist: release
archives:
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: darwin
linux: linux
windows: windows
amd64: amd64
arm64: arm64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- README-zh.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next-{{.ShortCommit}}"
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: jcli
tap:
owner: jenkins-zh
name: homebrew-jcli
folder: Formula
homepage: "https://github.com/jenkins-zh/jenkins-cli"
description: Jenkins CLI allows you manage your Jenkins as an easy way
dependencies:
- name: vim
type: optional
- name: bash-completion
type: optional
test: |
version_output = shell_output("#{bin}/jcli version")
assert_match version.to_s, version_output
install: |
bin.install name
# Install bash completion
output = Utils.popen_read("#{bin}/jcli completion")
(bash_completion/"jcli").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/jcli completion --type zsh")
(zsh_completion/"_jcli").write output
(Pathname.pwd/"man").mkpath
system "#{bin}/jcli", "doc", "--doc-type", "ManPage", "man"
man1.install Dir["man/*.1"]
prefix.install_metafiles
nfpms:
- file_name_template: "{{ .Binary }}-{{.Os}}-{{.Arch}}"
homepage: https://github.com/jenkins-zh/jenkins-cli
description: Jenkins CLI allows you manage your Jenkins as an easy way
maintainer: rick <rick@jenkins-zh.cn>
license: MIT
vendor: Jenkins
formats:
- deb
- rpm
suggests:
- java
- docker
recommends:
- bash-completion
- vim
bindir: /usr/bin
replacements:
amd64: 64bit
arm64: arm64
darwin: macOS
linux: linux
windows: windows
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/suvwwg/jenkins-cli.git
git@gitee.com:suvwwg/jenkins-cli.git
suvwwg
jenkins-cli
jenkins-cli
master

搜索帮助