-
Notifications
You must be signed in to change notification settings - Fork 71
/
.goreleaser.yaml
60 lines (54 loc) · 1.04 KB
/
.goreleaser.yaml
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
version: 2
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
main: ./
ldflags:
- -s -w
archives:
- format: tar.gz
files:
- LICENSE
dockers:
- image_templates:
- &amd_image 'ghcr.io/jackc/tern:{{ .Tag }}-amd64'
use: buildx
build_flag_templates:
- "--push"
- "--platform=linux/amd64"
goarch: amd64
extra_files:
- go.mod
- go.sum
- copy_dir.go
- main.go
- ssh_tunnel.go
- migrate
- image_templates:
- &arm_image 'ghcr.io/jackc/tern:{{ .Tag }}-arm64'
use: buildx
build_flag_templates:
- "--push"
- "--platform=linux/arm64"
goarch: arm64
extra_files:
- go.mod
- go.sum
- copy_dir.go
- main.go
- ssh_tunnel.go
- migrate
docker_manifests:
- name_template: 'ghcr.io/jackc/tern:{{ .Tag }}'
image_templates:
- *amd_image
- *arm_image
- name_template: 'ghcr.io/jackc/tern:latest'
image_templates:
- *amd_image
- *arm_image