-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
46 lines (38 loc) · 952 Bytes
/
.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
# .goreleaser.yml
project_name: twelvedata-exporter
env:
- GO111MODULE=on
# Build destination
github_urls:
# set to true if you use a self-signed certificate
skip_tls_verify: false
builds:
- main: main.go
id: twelvedata-exporter
binary: twelvedata-exporter
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- windows_amd64
ldflags:
- -s -w
env:
- CGO_ENABLED=0
asmflags:
- all=-trimpath=.
gcflags:
- all=-trimpath=.
dockers:
- id: twelvedata-exporter
image_templates:
- 'ghcr.io/umatare5/twelvedata-exporter:latest'
- 'ghcr.io/umatare5/twelvedata-exporter:{{ .Tag }}'
dockerfile: Dockerfile.goreleaser
archives:
- name_template: '{{ .ProjectName }}-v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
release:
prerelease: auto
checksum:
name_template: "{{ .ProjectName }}-v{{ .Version }}_checksums.txt"