-
Notifications
You must be signed in to change notification settings - Fork 67
/
goreleaser.yaml
101 lines (91 loc) · 2.47 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
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
project_name: ohUrlShortener
dist: build/
before:
hooks:
- go mod tidy
- go mod download
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
dockers:
- use: buildx
goos: linux
goarch: amd64
dockerfile: "docker/goreleaser-admin.Dockerfile"
image_templates:
- "baratsemet/ohurlshortener-admin:{{ .Version }}"
- "baratsemet/ohurlshortener-admin:latest"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=cn.ohurls.image.created={{.Date}}"
- "--label=cn.ohurls.image.title={{.ProjectName}}"
- "--label=cn.ohurls.image.revision={{.FullCommit}}"
- "--label=cn.ohurls.image.version={{.Version}}"
skip_push: "true"
extra_files:
- docker/docker_config.ini
- use: buildx
goos: linux
goarch: amd64
dockerfile: "docker/goreleaser-portal.Dockerfile"
image_templates:
- "baratsemet/ohurlshortener-portal:{{ .Version }}"
- "baratsemet/ohurlshortener-portal:latest"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=cn.ohurls.image.created={{.Date}}"
- "--label=cn.ohurls.image.title={{.ProjectName}}"
- "--label=cn.ohurls.image.revision={{.FullCommit}}"
- "--label=cn.ohurls.image.version={{.Version}}"
skip_push: "true"
extra_files:
- docker/docker_config.ini
archives:
- replacements:
darwin: macOS
linux: Linux
windows: Windows
amd64: x86_64
files:
- README.md
- LICENSE
- structure.sql
- config.ini
- CLA.md
- API.md
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}"
nfpms:
- file_name_template: "{{.ProjectName}}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
vendor: 巴拉迪维
homepage: https://www.ohurls.cn
maintainer: 巴拉迪维 <baratsemet@gmail.com>
description: ohUrlShortener 适合中小型社区网站使用的企业级短链接服务系统,支持短链接生产、查询及302转向,并自带点击量统计、独立IP数统计、访问日志查询
license: MulanPSL-2.0
formats:
- deb
- rpm
replacements:
linux: Linux
amd64: x86_64
signs:
- artifacts: checksum
signature: "${artifact}_sig"
cmd: gpg
output: true