-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.goreleaser.yml
102 lines (96 loc) · 1.97 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: hydra-maester
version: 2
before:
hooks:
- "go mod download"
builds:
- id: linux-amd64
flags:
- -a
binary: manager
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- linux
- id: linux-arm64
flags:
- -a
binary: manager
env:
- CGO_ENABLED=0
goarch:
- arm64
goos:
- linux
- id: linux-i386
flags:
- -a
binary: manager
env:
- CGO_ENABLED=0
goarch:
- 386
goos:
- linux
- id: darwin-amd64
flags:
- -a
binary: manager
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- darwin
- id: darwin-arm64
flags:
- -a
binary: manager
env:
- CGO_ENABLED=0
goarch:
- arm64
goos:
- darwin
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
use: github-native
dockers:
- image_templates:
- "oryd/hydra-maester:{{ .Tag }}-amd64"
- "oryd/hydra-maester:{{ .ShortCommit }}-amd64"
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
dockerfile: ".docker/Dockerfile-release"
ids:
- "linux-amd64"
- image_templates:
- "oryd/hydra-maester:{{ .Tag }}-arm64"
- "oryd/hydra-maester:{{ .ShortCommit }}-arm64"
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
dockerfile: ".docker/Dockerfile-release"
ids:
- "linux-arm64"
docker_manifests:
- name_template: "oryd/hydra-maester:{{ .Tag }}"
id: "tag"
image_templates:
- "oryd/hydra-maester:{{ .Tag }}-amd64"
- "oryd/hydra-maester:{{ .Tag }}-arm64"
- name_template: "oryd/hydra-maester:latest"
id: "latest"
image_templates:
- "oryd/hydra-maester:{{ .Tag }}-amd64"
- "oryd/hydra-maester:{{ .Tag }}-arm64"
release:
prerelease: auto
name_template: "{{ .Tag }}"