-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
143 lines (141 loc) · 5.22 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: 2
project_name: cloudflare-dynamic-dns
before:
hooks:
- go mod tidy
builds:
- binary: cloudflare-dynamic-dns
env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_386
- linux_arm64
- linux_arm_6
- linux_arm_7
- linux_mips
- linux_mipsle
- linux_mips64
- linux_mips64le
- darwin_amd64
- darwin_arm64
- windows_amd64
- windows_386
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- systemd/*
checksum:
name_template: checksums.txt
snapshot:
name_template: '{{ incpatch .Version }}-next'
aurs:
- name: cloudflare-dynamic-dns-bin
homepage: https://github.com/zebradil/cloudflare-dynamic-dns
description: Dynamic DNS client for Cloudflare with IPv6/IPv4 support
maintainers:
- German Lashevich <[email protected]>
license: MIT
private_key: '{{ .Env.AUR_SSH_KEY }}'
git_url: ssh://[email protected]/cloudflare-dynamic-dns-bin.git
package: |-
BIN=cloudflare-dynamic-dns
install -Dm755 ./$BIN -t "${pkgdir}/usr/bin"
install -Dm644 systemd/* -t "$pkgdir"/usr/lib/systemd/system
install -m700 -d "$pkgdir"/etc/cloudflare-dynamic-dns/config.d
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
./$BIN completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/$BIN"
./$BIN completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/$BIN.fish"
./$BIN completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_$BIN"
commit_author:
name: Zebradil Bot
email: [email protected]
nfpms:
- vendor: Zebradil
homepage: https://github.com/zebradil/cloudflare-dynamic-dns
maintainer: German Lashevich <[email protected]>
description: Dynamic DNS client for Cloudflare with IPv6/IPv4 support
license: MIT
formats:
- apk
- deb
- rpm
contents:
- src: systemd/
dst: /usr/lib/systemd/system/
dockers:
- goos: linux
goarch: amd64
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-amd64
use: buildx
build_flag_templates:
- --platform=linux/amd64
- goos: linux
goarch: arm64
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-arm64
use: buildx
build_flag_templates:
- --platform=linux/arm64
- goos: linux
goarch: arm
goarm: "6"
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-arm-6
use: buildx
build_flag_templates:
- --platform=linux/arm/6
- goos: linux
goarch: arm
goarm: "7"
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-arm-7
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-arm-7
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-arm-7
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-arm-7
use: buildx
build_flag_templates:
- --platform=linux/arm/7
docker_manifests:
- name_template: ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Tag }}-linux-arm-7
- name_template: ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}-linux-arm-7
- name_template: ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:{{ .Major }}.{{ .Minor }}-linux-arm-7
- name_template: ghcr.io/zebradil/cloudflare-dynamic-dns:latest
image_templates:
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-amd64
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-arm64
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-arm-6
- ghcr.io/zebradil/cloudflare-dynamic-dns:latest-linux-arm-7