-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
97 lines (89 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: hydra
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
-
id: hydra
flags:
- -a
ldflags:
- -s -w -X github.com/ory/hydra/cmd.Version={{.Env.RELEASE_NAME}} -X github.com/ory/hydra/cmd.Commit={{.FullCommit}} -X github.com/ory/hydra/cmd.Date={{.Date}}
binary: hydra
env:
- CGO_ENABLED=0
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 5
- 6
- 7
goos:
- freebsd
- linux
- windows
- darwin
archives:
- builds:
- hydra
id: hydra-archive
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: 32-bit
amd64: 64-bit
format_overrides:
- goos: windows
format: zip
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
brews:
- github:
owner: ory
name: homebrew-hydra
ids:
- hydra-archive
homepage: https://www.ory.sh
commit_author:
name: ory
email: hi@ory.sh
scoop:
bucket:
owner: ory
name: scoop-hydra
homepage: https://www.ory.sh
commit_author:
name: ory
email: hi@ory.sh
dockers:
- dockerfile: Dockerfile
binaries:
- hydra
image_templates:
- "oryd/hydra:v{{ .Major }}"
- "oryd/hydra:v{{ .Major }}.{{ .Minor }}"
- "oryd/hydra:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "oryd/hydra:{{ .Env.DOCKER_SHORT_TAG }}"
- "oryd/hydra:latest"
- dockerfile: Dockerfile-alpine
binaries:
- hydra
image_templates:
- "oryd/hydra:v{{ .Major }}-alpine"
- "oryd/hydra:v{{ .Major }}.{{ .Minor }}-alpine"
- "oryd/hydra:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-alpine"
- "oryd/hydra:{{ .Env.DOCKER_SHORT_TAG }}-alpine"
- "oryd/hydra:latest-alpine"
release:
prerelease: auto
name_template: "{{.Env.RELEASE_NAME}}"