nano-run/.goreleaser.yml

79 lines
2.1 KiB
YAML
Raw Normal View History

2020-09-10 10:11:34 +00:00
project_name: nano-run
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
2020-09-10 10:36:24 +00:00
goarm:
- 5
- 6
- 7
2020-09-10 10:11:34 +00:00
flags:
- -trimpath
main: ./cmd/nano-run
nfpms:
- id: debian
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
Linux: linux
386: i386
homepage: https://github.com/reddec/nano-run
maintainer: Baryshnikov Aleksandr <owner@reddec.net>
description: Lightweigt runner for web requests
license: Apache-2.0
formats:
- deb
scripts:
postinstall: "bundle/debian/postinstall.sh"
preremove: "bundle/debian/preremove.sh"
empty_folders:
- /etc/nano-run/conf.d
2020-09-11 11:57:50 +00:00
- /var/nano-run
2020-09-10 10:11:34 +00:00
config_files:
"bundle/debian/server.yaml": "/etc/nano-run/server.yaml"
2020-09-11 11:57:50 +00:00
files:
"bundle/debian/nano-run.service": "/etc/systemd/system/nano-run.service"
2020-09-10 10:11:34 +00:00
uploads:
- name: bintray
method: PUT
mode: archive
username: reddec
custom_artifact_name: true
ids:
- debian
target: 'https://api.bintray.com/content/reddec/debian/{{ .ProjectName }}/{{ .Version }}/{{ .ArtifactName }};publish=1;deb_component=main;deb_distribution=all;deb_architecture={{ .Arch }}'
dockers:
- binaries:
- nano-run
dockerfile: Dockerfile
extra_files:
- bundle/docker/server.yaml
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
image_templates:
- "reddec/nano-run:{{ .Tag }}"
- "reddec/nano-run:v{{ .Major }}"
- "reddec/nano-run:v{{ .Major }}.{{ .Minor }}"
- "reddec/nano-run:latest"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^build:'