forked from aquasecurity/trivy-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
goreleaser-e2e.yaml
61 lines (61 loc) · 1.68 KB
/
goreleaser-e2e.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
---
release:
draft: false
prerelease: auto
env:
- GO111MODULE=on
- CGO_ENABLED=0
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:
name_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
exclude:
- ^docs
- ^test
- ^release
dockers:
- image_templates:
- ghcr.io/aquasecurity/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
docker_manifests:
- name_template: ghcr.io/aquasecurity/trivy-operator:{{ .Version }}
image_templates:
- ghcr.io/aquasecurity/trivy-operator:{{ .Version }}-amd64