-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
39 lines (32 loc) · 968 Bytes
/
.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
# Template from: https://goreleaser.com/customization/build/
project_name: redirector
builds:
- main: ./src/main.go
env:
- CGO_ENABLED=0
ldflags:
- "-s -w -X main.version={{.Tag}}"
# GOOS list to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
goos:
- linux
- darwin
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
goarch:
- amd64
- arm
- arm64
- '386'
archives:
- format: binary
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
dockers:
- dockerfile: goreleaser.dockerfile
goos: linux
goarch: amd64
image_templates:
- 'ghcr.io/amrsaber/{{ .ProjectName }}:{{ .Tag }}'
- 'ghcr.io/amrsaber/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}'
- 'ghcr.io/amrsaber/{{ .ProjectName }}:v{{ .Major }}'
- 'ghcr.io/amrsaber/{{ .ProjectName }}:latest'