-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
84 lines (74 loc) · 2.03 KB
/
.goreleaser.yaml
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
project_name: prntenv
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
binary: prntenv
main: ./cmd/prntenv/
env:
- CGO_ENABLE=0
ldflags:
- -s -w
id: darwin
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [386, amd64, arm, arm64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [386, amd64, arm, arm64]
dockers:
- dockerfile: Dockerfile
image_templates:
- "ghcr.io/jcouture/{{.ProjectName}}:{{ .Version }}"
skip_push: false
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/jcouture/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/jcouture/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PASSWORD }}"
args:
- "sign-blob"
- "--key=env://COSIGN_PRIVATE_KEY"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
docker_signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PASSWORD }}"
args:
- "sign"
- "--key=env://COSIGN_PRIVATE_KEY"
- "--upload=false"
- "${artifact}"
- "--yes"
artifacts: all
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
brews:
- repository:
owner: jcouture
name: homebrew-prntenv
folder: Formula
homepage: https://github.com/jcouture/prntenv
description: Utility to print out the names and values of the variables in the environment
test: |
system "#{bin}/prntenv"