nano-run/.goreleaser.yml

87 lines
2.2 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-10-02 01:27:53 +00:00
"templates/**/*": "/var/nano-run/ui"
2020-09-28 13:55:31 +00:00
archives:
- files:
2020-10-02 01:27:53 +00:00
- "templates/**/*"
2020-09-28 13:55:31 +00:00
wrap_in_directory: true
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
2020-09-28 13:55:31 +00:00
- templates
2020-09-10 10:11:34 +00:00
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:'
2020-09-19 12:04:03 +00:00
- '^lint:'