-
Notifications
You must be signed in to change notification settings - Fork 71
/
.goreleaser.yml
123 lines (123 loc) · 3.72 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
project_name: postee
release:
draft: false
prerelease: auto
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- make build
builds:
- id: postee
dir: .
main: ./main.go
binary: postee
ldflags:
- -s -w
- "-extldflags '-static'"
- -X main.version={{.Version}}
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 7
ignore:
- goos: darwin
goarch: 386
archives:
- name_template: "{{ .ProjectName }}_{{.Version}}_{{ .Os }}_{{ .Arch }}"
builds:
- postee
replacements:
amd64: 64bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^release'
dockers:
- dockerfile: Dockerfile.release
use: buildx
goos: linux
goarch: amd64
image_templates:
- "docker.io/aquasec/postee:{{ .Version }}-amd64"
- "public.ecr.aws/aquasecurity/postee:{{ .Version }}-amd64"
- "docker.io/aquasec/postee:latest"
- "public.ecr.aws/aquasecurity/postee:latest"
ids:
- postee
extra_files:
- rego-templates/
- rego-filters/
- cfg.yaml
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=Command line interface for Postee"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/postee"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--platform=linux/amd64"
- dockerfile: Dockerfile.ui
use: buildx
goos: linux
goarch: amd64
image_templates:
- "docker.io/aquasec/postee-ui:{{ .Version }}-amd64"
- "public.ecr.aws/aquasecurity/postee-ui:{{ .Version }}-amd64"
- "docker.io/aquasec/postee-ui:latest"
- "public.ecr.aws/aquasecurity/postee-ui:latest"
ids:
- postee-ui
extra_files:
- rego-templates/
- rego-filters/
- cfg.yaml
- ui/
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=Postee UI"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/postee"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/postee/v{{ .Version }}/"
- "--platform=linux/amd64"
docker_manifests:
- name_template: 'aquasec/postee:{{ .Version }}'
image_templates:
- 'aquasec/postee:{{ .Version }}-amd64'
- name_template: 'public.ecr.aws/aquasecurity/postee:{{ .Version }}'
image_templates:
- 'public.ecr.aws/aquasecurity/postee:{{ .Version }}-amd64'
- name_template: 'aquasec/postee:latest'
image_templates:
- 'aquasec/postee:{{ .Version }}-amd64'
# Postee-UI
- name_template: 'aquasec/postee-ui:{{ .Version }}'
image_templates:
- 'aquasec/postee-ui:{{ .Version }}-amd64'
- name_template: 'public.ecr.aws/aquasecurity/postee-ui:{{ .Version }}'
image_templates:
- 'public.ecr.aws/aquasecurity/postee-ui:{{ .Version }}-amd64'
- name_template: 'aquasec/postee-ui:latest'
image_templates:
- 'aquasec/postee-ui:{{ .Version }}-amd64'