-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
51 lines (48 loc) · 1.13 KB
/
.goreleaser.yaml
File metadata and controls
51 lines (48 loc) · 1.13 KB
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
# .goreleaser.yml
#version: 2
dist: build
builds:
- id: apipark
goos:
- linux
- darwin
goarch:
- amd64
- arm64
goarm:
- "6"
gomips:
- hardfloat
goamd64:
- v1
targets:
- linux_arm64
- linux_amd64
- darwin_arm64
- darwin_amd64
tags:
- release
- mysql
dir: ./
main: ./
binary: apipark
builder: go
gobinary: go
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X 'github.com/eolinker/apipark/common/version.Version=${VERSION}'
- -X 'github.com/eolinker/apipark/common/version.goversion=$(go version)'
- -X 'github.com/eolinker/apipark/common/version.gitcommit=$(git rev-parse HEAD)'
- -X 'github.com/eolinker/apipark/common/version.BuildTime=$(date -u +"%Y-%m-%dT%H:%M:%SZ")'
- -X 'github.com/eolinker/apipark/common/version.builduser=$(id -u -n)'
archives:
- id: default
format: tar.gz
wrap_in_directory: "apipark_{{ .Tag }}"
name_template: "apipark_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
files:
- src: 'scripts/resource/*'
dst: /
strip_parent: true