-
Notifications
You must be signed in to change notification settings - Fork 43
/
.goreleaser.yml
107 lines (105 loc) · 3.63 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
# 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 download
# you may remove this if you don't need go generate
# - go generate ./...
project_name: space
builds:
- id: space
# env:
# - CGO_ENABLED=0
ldflags:
- -s -w -X main.spaceapi={{ .Env.SERVICES_API_URL }}
- -X main.vaultapi={{ .Env.VAULT_API_URL }}
- -X main.vaultsaltsecret={{ .Env.VAULT_SALT_SECRET }}
- -X main.spacehubauth={{ .Env.SERVICES_HUB_AUTH_URL }}
- -X main.textilehub={{ .Env.TXL_HUB_TARGET }}
- -X main.textilehubma={{ .Env.TXL_HUB_MA }}
- -X main.textilethreads={{ .Env.TXL_THREADS_TARGET }}
- -X main.textilehubgatewayurl={{ .Env.TXL_HUB_GATEWAY_URL }}
- -X main.textileuserkey={{ .Env.TXL_USER_KEY }}
- -X main.textileusersecret={{ .Env.TXL_USER_SECRET }}
- -X main.spacestoragesiteurl={{ .Env.SPACE_STORAGE_SITE_URL }}
- -X main.ipfsaddr={{ .Env.IPFS_ADDR }}
- -X main.ipfsnodeaddr={{ .Env.IPFS_NODE_ADDR }}
- -X main.ipfsnodepath={{ .Env.IPFS_NODE_PATH }}
main: ./cmd/space-daemon/main.go
binary: space
goos:
- linux
- id: space-darwin
# env:
# - CGO_ENABLED=0
ldflags:
- -s -w -X main.spaceapi={{ .Env.SERVICES_API_URL }}
- -X main.vaultapi={{ .Env.VAULT_API_URL }}
- -X main.vaultsaltsecret={{ .Env.VAULT_SALT_SECRET }}
- -X main.spacehubauth={{ .Env.SERVICES_HUB_AUTH_URL }}
- -X main.textilehub={{ .Env.TXL_HUB_TARGET }}
- -X main.textilehubma={{ .Env.TXL_HUB_MA }}
- -X main.textilethreads={{ .Env.TXL_THREADS_TARGET }}
- -X main.textilehubgatewayurl={{ .Env.TXL_HUB_GATEWAY_URL }}
- -X main.textileuserkey={{ .Env.TXL_USER_KEY }}
- -X main.textileusersecret={{ .Env.TXL_USER_SECRET }}
- -X main.spacestoragesiteurl={{ .Env.SPACE_STORAGE_SITE_URL }}
- -X main.ipfsaddr={{ .Env.IPFS_ADDR }}
- -X main.ipfsnodeaddr={{ .Env.IPFS_NODE_ADDR }}
- -X main.ipfsnodepath={{ .Env.IPFS_NODE_PATH }}
main: ./cmd/space-daemon/main.go
binary: space
goos:
- darwin
# hooks:
# post: gon -log-level debug ci/gon.hcl
- id: space-win
# env:
# - CGO_ENABLED=1
ldflags:
- -s -w -X main.spaceapi={{ .Env.SERVICES_API_URL }}
- -X main.vaultapi={{ .Env.VAULT_API_URL }}
- -X main.vaultsaltsecret={{ .Env.VAULT_SALT_SECRET }}
- -X main.spacehubauth={{ .Env.SERVICES_HUB_AUTH_URL }}
- -X main.textilehub={{ .Env.TXL_HUB_TARGET }}
- -X main.textilehubma={{ .Env.TXL_HUB_MA }}
- -X main.textilethreads={{ .Env.TXL_THREADS_TARGET }}
- -X main.textilehubgatewayurl={{ .Env.TXL_HUB_GATEWAY_URL }}
- -X main.textileuserkey={{ .Env.TXL_USER_KEY }}
- -X main.textileusersecret={{ .Env.TXL_USER_SECRET }}
- -X main.spacestoragesiteurl={{ .Env.SPACE_STORAGE_SITE_URL }}
- -X main.ipfsaddr={{ .Env.IPFS_ADDR }}
- -X main.ipfsnodeaddr={{ .Env.IPFS_NODE_ADDR }}
- -X main.ipfsnodepath={{ .Env.IPFS_NODE_PATH }}
main: ./cmd/space-daemon/main.go
binary: space
goos:
- windows
# ignore:
# - goos: windows
# goarch: 386
archives:
- name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}'
format: binary
files:
- LICENSE*
- README*
- CHANGELOG*
- dist/space-macos-i386.dmg
- dist/space-macos-x86_64.dmg
replacements:
darwin: Darwin
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:'