forked from aquasecurity/trivy-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoreleaser-e2e.yaml
More file actions
87 lines (86 loc) · 2.84 KB
/
goreleaser-e2e.yaml
File metadata and controls
87 lines (86 loc) · 2.84 KB
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
version: 2
project_name: build_e2e
release:
draft: false
prerelease: auto
env:
- GO111MODULE=on
- CGO_ENABLED=0
- GOEXPERIMENT=jsonv2
before:
hooks:
- go mod download
builds:
- id: trivy-operator
main: ./cmd/trivy-operator/main.go
binary: trivy-operator
goos:
- linux
goarch:
- amd64
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
builds:
- trivy-operator
format_overrides:
- goos: windows
format: zip
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
exclude:
- ^docs
- ^test
- ^release
dockers:
- image_templates:
- mirror.gcr.io/aquasec/trivy-operator:{{ .Version }}-amd64
use: buildx
goos: linux
dockerfile: build/trivy-operator/Dockerfile
goarch: amd64
ids:
- trivy-operator
build_flag_templates:
- --label=org.opencontainers.image.title=trivy-operator
- --label=org.opencontainers.image.description=Keeps trivy-operator
resources updated
- --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/trivy-operator
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy-operator/v{{
.Version }}/
- --platform=linux/amd64
- image_templates:
- "mirror.gcr.io/aquasec/trivy-operator:{{ .Version }}-ubi9-amd64"
use: buildx
goos: linux
dockerfile: build/trivy-operator/Dockerfile.ubi9
goarch: amd64
extra_files:
- LICENSE
ids:
- trivy-operator
build_flag_templates:
- "--label=org.opencontainers.image.title=trivy-operator"
- "--label=org.opencontainers.image.description=Keeps trivy-operator resources updated"
- "--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/trivy-operator"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy-operator/v{{ .Version }}/"
- "--platform=linux/amd64"
docker_manifests:
- name_template: mirror.gcr.io/aquasec/trivy-operator:{{ .Version }}
image_templates:
- mirror.gcr.io/aquasec/trivy-operator:{{ .Version }}-amd64
- name_template: "mirror.gcr.io/aquasec/trivy-operator:{{ .Version }}-ubi9"
image_templates:
- "mirror.gcr.io/aquasec/trivy-operator:{{ .Version }}-ubi9-amd64"