forked from ContentSquare/chproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
60 lines (55 loc) · 1.22 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
---
builds:
- id: linux-amd64
binary: chproxy
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
flags:
- "-tags={{ .Env.BUILD_TAG }}"
ldflags:
- -s
- -w
- -X main.buildTime={{ .Date }}
- -X main.buildRevision={{ .FullCommit }}
- -X main.buildTag={{ .Version }}
gcflags:
- -trimpath={{.Env.GOPATH}}/src
- id: linux-arm64
binary: chproxy-arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
flags:
- "-tags={{ .Env.BUILD_TAG }}"
ldflags:
- -s
- -w
- -X main.buildTime={{ .Date }}
- -X main.buildRevision={{ .FullCommit }}
- -X main.buildTag={{ .Version }}
gcflags:
- -trimpath={{.Env.GOPATH}}/src
dockers:
- goos: linux
goarch: amd64
image_templates:
- "contentsquareplatform/chproxy:{{ .Version }}"
snapshot:
name_template: "{{ .FullCommit }}-SNAPSHOT"
release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL.
github:
owner: ContentSquare
name: chproxy
# If set to true, will not auto-publish the release.
# Default is false.
draft: false