Repository navigation
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
73 lines (66 loc) · 1.7 KB
/
Copy path.goreleaser.yaml
File metadata and controls
73 lines (66 loc) · 1.7 KB
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
before:
hooks:
- go mod tidy
- go run ./scripts/docs.go
builds:
- main: .
binary: poweradmin
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/contentways/poweradmin-cli/v3/internal/version.Version={{ .Version }}
- -X github.com/contentways/poweradmin-cli/v3/internal/version.Commit={{ .ShortCommit }}
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
formats: [zip]
files:
- LICENSE
- README.md
- docs/reference/*.md
dockers_v2:
- images:
- "contentwaysorg/poweradmin-cli"
tags:
- "{{ .Version }}"
- "{{ if not .IsNightly }}latest{{ end }}"
labels:
"org.opencontainers.image.title": "poweradmin-cli"
"org.opencontainers.image.description": "CLI for managing Poweradmin DNS"
"org.opencontainers.image.source": "https://github.com/Contentways/poweradmin-cli"
"org.opencontainers.image.version": "{{ .Version }}"
"org.opencontainers.image.revision": "{{ .FullCommit }}"
"org.opencontainers.image.licenses": "MIT"
checksum:
name_template: "checksums.txt"
algorithm: sha256
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
release:
draft: false
prerelease: auto
footer: >-
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).