This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
96 lines (94 loc) · 3.27 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
binary: goreleaser-live
archives:
- replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: goreleaser-live
tap:
owner: vojtechmares
name: homebrew-live
homepage: https://github.com/vojtechmares/goreleaser-live
url_template: "https://github.com/vojtechmares/goreleaser-live/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
folder: Formula
caveats: "GoReleaser example, source: https://github.com/vojtechmares/goreleaser-live"
description: "GoReleaser on #DevOpsLiveCZ"
test: |
system "#{bin}/goreleaser-live"
dockers:
- goos: linux
goarch: amd64
image_templates:
- "vojtechmares/goreleaser-live:stable"
- "vojtechmares/goreleaser-live:{{ .Tag }}"
skip_push: false
dockerfile: Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--label=com.github.actions.name={{.ProjectName}}"
- "--label=com.github.actions.description=Example"
- "--label=com.github.actions.icon=terminal"
- "--label=com.github.actions.color=blue"
- "--label=repository=https://github.com/vojtechmares/goreleaser-live"
- "--label=maintainer=Vojtech Mares <[email protected]>"
- goos: linux
goarch: arm64
image_templates:
- "vojtechmares/goreleaser-live:stable-arm64"
- "vojtechmares/goreleaser-live:{{ .Tag }}-arm64"
skip_push: false
dockerfile: Dockerfile.arm64v8
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--label=com.github.actions.name={{.ProjectName}}"
- "--label=com.github.actions.description=Example"
- "--label=com.github.actions.icon=terminal"
- "--label=com.github.actions.color=blue"
- "--label=repository=https://github.com/vojtechmares/goreleaser-live"
- "--label=maintainer=Vojtech Mares <[email protected]>"