-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
73 lines (68 loc) · 1.61 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
---
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
# - go fmt ./...
# - go vet ./...
# - go test ./...
builds:
- skip: false
env:
- CGO_ENABLED=0
main: ./cmd
binary: manager
flags:
- -trimpath
ldflags:
- -s -w -X main.Version={{ .Version }} -X main.Commit={{ .Commit }} -X main.CommitDate={{ .CommitDate }}
goos:
- linux
goarch:
- amd64
- arm64
release:
github:
owner: hercynium
name: istio-fortsa
kos:
- base_image: gcr.io/distroless/static:nonroot
repository: ghcr.io/hercynium/istio-fortsa
main: ./cmd
tags:
- "{{ .Tag }}"
- latest
platforms:
- linux/amd64
- linux/arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags "-static"
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.CommitDate={{ .CommitDate }}
bare: true
preserve_import_paths: false
base_import_paths: false
labels:
org.opencontainers.image.title: "{{ .ProjectName }}"
org.opencontainers.image.description: "{{ .ProjectName }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.version: "{{ .Version }}"
org.opencontainers.image.url: "{{ .Env.GITHUB_SERVER_URL }}/{{ .Env.GITHUB_REPOSITORY }}"
org.opencontainers.image.source: "{{ .Env.GITHUB_SERVER_URL }}/{{ .Env.GITHUB_REPOSITORY }}"
changelog:
sort: asc
filters:
exclude:
- "^docs"
- "^test"
- "^chore"
- "Merge pull request"
- "Merge branch"