forked from k0rdent/kof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
108 lines (99 loc) · 3.1 KB
/
.goreleaser.yml
File metadata and controls
108 lines (99 loc) · 3.1 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: 2
project_name: kof-operator
builds:
- id: amd64
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
main: ./cmd/main.go
dir: kof-operator
binary: bin/manager
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w
tags:
- netgo
builder: go
- id: arm64
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- arm64
flags:
- -trimpath
dir: kof-operator
main: ./cmd/main.go
binary: bin/manager
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w
tags:
- netgo
builder: go
dockers:
- id: linux-amd64
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.IMAGE_REPO }}:{{ .Env.VERSION }}-amd64"
- "{{ .Env.IMAGE_REPO }}:latest-amd64"
skip_push: false
dockerfile: "./kof-operator/goreleaser.dockerfile"
use: buildx
ids:
- amd64
build_flag_templates:
- --label=org.opencontainers.image.title="{{ .ProjectName }} - k0rdent Observability and FinOps"
- --label=org.opencontainers.image.description="Image with k0rdent Observability and FinOps binary"
- --label=org.opencontainers.image.url=https://github.com/k0rdent/kof
- --label=org.opencontainers.image.source=https://github.com/k0rdent/kof
- --label=org.opencontainers.image.version={{ .Env.VERSION }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
- --platform=linux/amd64
- id: linux-arm64
goos: linux
goarch: arm64
image_templates:
- "{{ .Env.IMAGE_REPO }}:{{ .Env.VERSION }}-arm64"
- "{{ .Env.IMAGE_REPO }}:latest-arm64"
skip_push: false
dockerfile: "./kof-operator/goreleaser.dockerfile"
use: buildx
ids:
- arm64
build_flag_templates:
- --label=org.opencontainers.image.title="{{ .ProjectName }} - k0rdent Observability and FinOps"
- --label=org.opencontainers.image.description="Image with k0rdent Observability and FinOps binary"
- --label=org.opencontainers.image.url=https://github.com/k0rdent/kof
- --label=org.opencontainers.image.source=https://github.com/k0rdent/kof
- --label=org.opencontainers.image.version={{ .Env.VERSION }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
- --platform=linux/arm64/v8
docker_manifests:
- name_template: "{{ .Env.IMAGE_REPO }}:{{ .Env.VERSION }}"
image_templates:
- "{{ .Env.IMAGE_REPO }}:{{ .Env.VERSION }}-amd64"
- "{{ .Env.IMAGE_REPO }}:{{ .Env.VERSION }}-arm64"
skip_push: false
use: docker
- name_template: "{{ .Env.IMAGE_REPO }}:latest"
image_templates:
- "{{ .Env.IMAGE_REPO }}:latest-amd64"
- "{{ .Env.IMAGE_REPO }}:latest-arm64"
skip_push: false
use: docker
release:
github:
owner: k0rdent
name: kof