Semaphore/.goreleaser.yml
2021-06-25 14:07:35 +05:00

77 lines
1.7 KiB
YAML

# Goreleaser configuration
# for building binaries and packages for distributions and releasing on github
dist: bin
before:
hooks:
- task compile
builds:
- binary: semaphore
main: ./cli/main.go
goos:
- windows
- darwin
- linux
#- freebsd
#- openbsd
#- netbsd
goarch:
- amd64
#- 386
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
# hooks:
# pre: task compile
archives:
-
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
signs:
-
artifacts: checksum
# gpg --sign -u "8CDE D132 5E96 F1D9 EABF 17D4 2C96 CF7D D27F AB82" --pinentry-mode loopback --yes --batch --passphrase "${GPG_PASS}" --output ${signature} --detach-sign "${artifact}"
args: ["-u", "8CDE D132 5E96 F1D9 EABF 17D4 2C96 CF7D D27F AB82", "--pinentry-mode", "loopback", "--yes", "--batch", "--output", "${signature}", "--detach-sign", "${artifact}"]
# Start the snapshot name with a numerical value
# so it does not need to be force installed
snapshot:
name_template: "{{ .Timestamp }}-{{ .ShortCommit }}-SNAPSHOT"
nfpms:
-
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
vendor: Castaway Consulting LLC
homepage: https://github.com/ansible-semaphore/semaphore
maintainer: Castaway Consulting LLC <support@castawaylabs.com>
description: Open Source alternative to Ansible Tower
license: MIT
formats:
- deb
- rpm
# Packages your package depends on.
dependencies:
- git
suggests:
- ansible
# install binary in /usr/bin
bindir: /usr/bin
release:
# Do not auto publish release
draft: true
name_template: "{{.Tag}}"