This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
forked from tfadeyi/auth0-simple-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
98 lines (92 loc) · 2.76 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
project_name: auth0-simple-exporter
builds:
- id: "linux"
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- '-s -w -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Platform=linux/unknown" -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Version={{ .Version }}" -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Commit={{ .Commit }}" -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Date={{ .Date }}"'
binary: "{{ .ProjectName }}"
goos:
- linux
goarch:
- amd64
- arm64
- arm
- id: "darwin"
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- '-s -w -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Platform=darwin/unknown" -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Version={{ .Version }}" -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Commit={{ .Commit }}" -X "github.com/tfadeyi/{{ .ProjectName }}/pkg/version.Date={{ .Date }}"'
binary: "{{ .ProjectName }}"
goos:
- darwin
goarch:
- amd64
- arm64
archives:
- id: linux
format: tar.gz
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
builds:
- "linux"
- id: darwin
format: tar.gz
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
builds:
- "darwin"
kos:
- working_dir: .
id: "linux"
build: "linux"
base_image: gcr.io/distroless/base:nonroot
# labels are going to be supported in goreleaser 1.16.3, waiting for the release
labels:
org.opencontainers.image.source: https://github.com/tfadeyi/auth0-simple-exporter
org.opencontainers.image.description: "Simple Prometheus exporter for Auth0 log events"
org.opencontainers.image.licenses: APACHE
org.opencontainers.image.title: "Auth0 Exporter"
org.opencontainers.image.vendor: ""
org.opencontainers.image.authors: "Oluwole Fadeyi"
platforms:
- linux/amd64
- linux/arm64
- linux/arm
tags:
- latest
- '{{.Tag}}'
sbom: cyclonedx
bare: true
base_import_paths: true
checksum:
name_template: "{{ .ProjectName }}-SHA256SUMS"
algorithm: sha256
release:
draft: true
changelog:
use: github-native
skip: false
signs:
- cmd: cosign
args:
- "sign-blob"
- "${artifact}"
- "--output-signature=${signature}"
- "--yes" # needed on cosign 2.0.0+
artifacts: checksum
# the image signing doesn't seem to work when using ku to build the image
#docker_signs:
# - cmd: cosign
# args:
# - "sign"
# - "ghcr.io/tfadeyi/auth0-simple-exporter@${digest}"
# - "--yes"
# artifacts: all
# output: true