-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
58 lines (54 loc) · 1.5 KB
/
.goreleaser.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
version: 2
builds:
- id: lagoon-opensearch-sync
binary: lagoon-opensearch-sync
main: ./cmd/lagoon-opensearch-sync
ldflags:
- >
-s -w
-X "main.commit={{.Commit}}"
-X "main.date={{.Date}}"
-X "main.goVersion={{.Env.GOVERSION}}"
-X "main.projectName={{.ProjectName}}"
-X "main.version=v{{.Version}}"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
changelog:
use: github-native
dockers:
- ids:
- lagoon-opensearch-sync
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}-amd64"
use: buildx
build_flag_templates:
- "--build-arg=BINARY=lagoon-opensearch-sync"
- "--platform=linux/amd64"
- ids:
- lagoon-opensearch-sync
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}-arm64v8"
use: buildx
goarch: arm64
build_flag_templates:
- "--build-arg=BINARY=lagoon-opensearch-sync"
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}"
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}-arm64v8"
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest"
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Version }}-arm64v8"
release:
extra_files:
- glob: "{{ .Env.GITHUB_SBOM_PATH }}"
name_template: "{{ .ProjectName }}.v{{ .Version }}.sbom.spdx.json"