forked from ContentSquare/chproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
65 lines (60 loc) · 1.4 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
---
before:
hooks:
- go mod tidy
- go mod download
builds:
- id: chproxy
binary: chproxy
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- 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:{{ .Tag }}"
- "contentsquareplatform/chproxy:{{ .Tag }}-amd64"
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
# - goos: linux
# goarch: arm64
# image_templates:
# - "contentsquareplatform/chproxy:{{ .Tag }}-arm64"
# use: buildx
# build_flag_templates:
# - "--platform=linux/arm64"
# - goos: linux
# goarch: arm64
# image_templates:
# - "contentsquareplatform/chproxy:{{ .Tag }}-arm64v8"
# use: buildx
# build_flag_templates:
# - "--platform=linux/arm64/v8"
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