-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
75 lines (66 loc) · 1.87 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
version: 2
project_name: AutomatedGo
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
main: ./cmd/AutomatedGo
flags:
- -trimpath
archives:
- format: binary
name_template: "{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
changelog:
use: github
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
dockers:
- dockerfile: Dockerfile
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/AutomatedGo:{{ .Version }}"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/AutomatedGo:master"
- "{{ .Env.DOCKER_USERNAME }}/automatedgo:{{ .Version }}"
- "{{ .Env.DOCKER_USERNAME }}/automatedgo:master"
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}}"
docker_signs:
- cmd: cosign
args:
- "sign"
- "${artifact}"
- "--yes"
artifacts: all
output: true
signs:
- cmd: cosign
args:
- "sign-blob"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
release:
github:
owner: Nicconike
name: AutomatedGo
prerelease: auto
draft: false
footer: |
## How to install
```
go install github.com/Nicconike/AutomatedGo/v2/cmd/automatedgo@{{ .Tag }}
```
For more information, please refer to the [documentation](https://github.com/Nicconike/AutomatedGo#readme).