-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
49 lines (48 loc) · 1.38 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
project_name: aci-dns-manager
env_files:
github_token: .github_token.env
builds:
- main: cmd/main.go
binary: aci-dns-manager
flags:
- -a
ldflags:
- -s -w
- "-extldflags '-static'"
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
dockers:
- image_templates:
- "ghcr.io/tmeckel/{{ .ProjectName }}:{{ .Version }}"
- "ghcr.io/tmeckel/{{ .ProjectName }}:latest"
goos: linux
goarch: amd64
dockerfile: docker/Dockerfile
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.name={{ .ProjectName }}"
- "--label=org.label-schema.description=DNS Manager for Azure Container Instances"
- "--label=org.label-schema.version={{ .Version }}"
- "--label=org.label-schema.build-date={{ .Date }}"
- "--label=org.label-schema.vcs=https://github.com/tmeckel/aci-dns-manager"
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}"
- "--platform=linux/amd64"