-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
46 lines (40 loc) · 967 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
env:
- GO111MODULE=on
- CGO_ENABLED=0
- RELEASE_BUILDS=dist/escapepod_darwin_amd64/escapepod dist/escapepod_linux_amd64/escapepod dist/escapepod_windows_amd64/escapepod.exe
before:
hooks:
- make frontend-deps build-frontend
builds:
- binary: escapepod
main: ./cmd/escapepod
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
ldflags:
- -s -w -X "main.buildString={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})"
hooks:
post: make pack-releases
archives:
- format: tar.gz
archive:
wrap_in_directory: true
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: "SHA256SUMS"
dockers:
- goos: linux
goarch: amd64
binaries:
- escapepod
image_templates:
- "rphillips/escapepod:latest"
- "rphillips/escapepod:{{ .Tag }}"
dockerfile: Dockerfile
extra_files:
- escapepod.toml.sample