-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy path.goreleaser.yml
87 lines (86 loc) · 2.44 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
project_name: postee
release:
draft: false
prerelease: auto
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- make all
builds:
- id: postee
dir: .
main: ./main.go
binary: postee
goos:
- darwin
- linux
goarch:
- amd64
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
builds:
- postee
replacements:
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^release'
dockers:
- dockerfile: Dockerfile.release
use: buildx
image_templates:
- "docker.io/aquasec/postee:{{ .Version }}"
- "public.ecr.aws/aquasecurity/postee:{{ .Version }}"
- "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.label-schema.schema-version=1.0"
- "--label=org.label-schema.name={{ .ProjectName }}"
- "--label=org.label-schema.description=Command line interface for Postee"
- "--label=org.label-schema.vendor=Aqua Security"
- "--label=org.label-schema.version={{ .Version }}"
- "--label=org.label-schema.build-date={{ .Date }}"
- "--label=org.label-schema.vcs=https://github.com/aquasecurity/postee"
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}"
- dockerfile: Dockerfile.ui
use: buildx
image_templates:
- "docker.io/aquasec/postee-ui:{{ .Version }}"
- "public.ecr.aws/aquasecurity/postee-ui:{{ .Version }}"
- "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.label-schema.schema-version=1.0"
- "--label=org.label-schema.name={{ .ProjectName }}"
- "--label=org.label-schema.description=Postee UI"
- "--label=org.label-schema.vendor=Aqua Security"
- "--label=org.label-schema.version={{ .Version }}"
- "--label=org.label-schema.build-date={{ .Date }}"
- "--label=org.label-schema.vcs=https://github.com/aquasecurity/postee"
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}"