-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.goreleaser.yml
75 lines (75 loc) · 1.77 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
before:
hooks:
- go mod download
archives:
- id: webhook-go
format_overrides:
- goos: windows
format: zip
builds:
- id: webhook-go
ldflags: -s -w -X 'github.com/voxpupuli/webhook-go/cmd.version={{.Version}}'
env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- "6"
- "7"
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
nfpms:
- vendor: Vox Pupuli
homepage: https://github.com/voxpupuli/webhook-go
maintainer: Vox Pupuli <[email protected]>
description: |-
Puppet Webhook API server written in Go.
Designed to provide a web api that can receive
webhooks from VCS services such as GitHub, GitLab, etc
and execute r10k deployments
license: Apache 2.0
formats:
- deb
- rpm
contents:
- src: build/webhook.yml
dst: /etc/voxpupuli/webhook.yml
type: "config|noreplace"
- src: build/webhook-go.service
dst: /etc/systemd/system/webhook-go.service
scripts:
postinstall: "build/post-install.sh"
postremove: "build/post-remove.sh"
dockers:
- image_templates:
- "ghcr.io/voxpupuli/{{ .ProjectName }}:{{ .Version }}"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
extra_files:
- "build/webhook.yml"
release:
github:
owner: voxpupuli
name: webhook-go
name_template: "Release v{{.Version}}"
prerelease: auto
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'