-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
37 lines (34 loc) · 1.16 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
project_name: cert-manager-webhook-rackspace
builds:
- main: ./cmd/webhook
binary: cert-manager-webhook-rackspace
env:
- GCO_ENABLED=0
goos:
- linux
ldflags:
- -X 'main.Version={{.Version}}'
- -X 'main.Gitsha={{.ShortCommit}}'
dockers:
- image_templates:
- '{{ envOrDefault "REGISTRY" "ghcr.io" }}/{{ envOrDefault "REG_ORG" "rackerlabs" }}/{{ .ProjectName }}:{{ .Version }}'
- '{{ envOrDefault "REGISTRY" "ghcr.io" }}/{{ envOrDefault "REG_ORG" "rackerlabs" }}/{{ .ProjectName }}:latest'
goos: linux
goarch: amd64
use: buildx
build_flag_templates:
- "--label=org.opencontainers.image.description=Rackspace Cloud DNS support for cert-manager"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
changelog:
use: github
sort: asc
filters:
exclude:
- '^chore:'
- '^docs:'
- '^test:'