-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy path.goreleaser.yml
74 lines (65 loc) · 1.57 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
project_name: fletd
snapshot:
name_template: '{{ .Env.APPVEYOR_BUILD_VERSION }}'
builds:
- id: fletd
main: cmd/fletd/main.go
binary: fletd
env:
- CGO_ENABLED=0
flags:
- -tags=release
ldflags:
- -s -w -X github.com/flet-dev/flet/server/commands.version={{.Version}}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm64
- arm
goarm:
- 7
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
- goos: linux
goarch: 386
- goos: darwin
goarch: 386
# dockers:
# - ids:
# - fletd
# goos: linux
# goarch: amd64
# goarm: ""
# image_templates:
# - "flet-dev/fletd:latest"
# - "flet-dev/fletd:{{ .Version }}"
# #- "us.gcr.io/flet-app/flet-server:{{ .Version }}"
# skip_push: true
# dockerfile: Dockerfile
# use: buildx
# # Template of the docker build flags.
# build_flag_templates:
# - "--pull"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# #- "--build-arg=FOO={{.Env.Bar}}"
# - "--platform=linux/amd64"
archives:
- id: fletd-archives
builds:
- fletd
name_template: "fletd-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
release:
prerelease: auto