-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
117 lines (109 loc) · 3.08 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
before:
hooks:
- go mod download
builds:
- main: ./cmd/cider
env:
- CGO_ENABLED=0
goos:
- darwin
- freebsd
- linux
- openbsd
- windows
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=cidertool
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
dockers:
- dockerfile: build/Dockerfile
image_templates:
- cidertool/cider:{{ .Tag }}
- cidertool/cider:v{{ .Major }}
- cidertool/cider:v{{ .Major }}.{{ .Minor }}
- cidertool/cider:latest
ids:
- cider
extra_files:
- build/entrypoint.sh
build_flag_templates:
- --pull
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.name={{ .ProjectName }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=repository=http://github.com/cidertool/cider
- --label=homepage=http://cidertool.github.io/cider
- --label=maintainer=Aaron Sky <[email protected]>
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
amd64: x86_64
format_overrides:
- goos: windows
format: zip
brews:
- name: cider
description: Submit your builds to the Apple App Store in seconds
homepage: https://cidertool.github.io/cider
tap:
owner: cidertool
name: homebrew-tap
folder: Formula
commit_author:
name: cider-bot
email: [email protected]
test: |
system "#{bin}/cider", "-v"
# - name: cider-core
# description: Submit your builds to the Apple App Store in seconds
# homepage: https://cidertool.github.io/cider
# tap:
# owner: cidertool
# name: homebrew-tap
# folder: Formula
# commit_author:
# name: cider-bot
# email: [email protected]
# dependencies:
# - name: go
# type: build
# install: |
# system "go", "build", "-ldflags",
# "-s -w -X main.version=#{version} -X main.commit=#{stable.specs[:revision]} -X main.builtBy=homebrew",
# *std_go_args
# man1.install "docs/man/cider.1"
# man1.install "docs/man/cider_init.1"
# man1.install "docs/man/cider_release.1"
# man1.install "docs/man/cider_check.1"
# man1.install "docs/man/cider_completions.1"
# test: |
# system "#{bin}/cider", "-v"
scoop:
description: Submit your builds to the Apple App Store in seconds
homepage: https://cidertool.github.io/cider
license: GPL-3.0-or-later
bucket:
owner: cidertool
name: scoop-bucket
commit_author:
name: cider-bot
email: [email protected]