all repos — weimar @ 0ba068faac3861b09c7dc896d508fa45e594e23e

Unnamed repository; edit this file 'description' to name the repository.

.goreleaser.yml (view raw)

 1version: 2
 2
 3before:
 4  hooks:
 5    - make web-embed
 6
 7builds:
 8  - id: default
 9    main: ./cmd/weimar
10    binary: weimar
11    env:
12      - CGO_ENABLED=0
13    ldflags:
14      - -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}}
15    goos:
16      - linux
17    #  - windows
18      - darwin
19    goarch:
20      - arm64
21      - amd64
22      - "386"
23    dir: .
24
25archives:
26  - formats: [tar.gz]
27    # this name template makes the OS and Arch compatible with the results of `uname`.
28    name_template: >-
29      {{ .ProjectName }}_
30      {{- title .Os }}_
31      {{- if eq .Arch "amd64" }}x86_64
32      {{- else if eq .Arch "386" }}i386
33      {{- else }}{{ .Arch }}{{ end }}
34      {{- if .Arm }}v{{ .Arm }}{{ end }}      
35    # use zip for windows archives
36    #format_overrides:
37    #  - goos: windows
38    #    formats: [zip]
39
40changelog:
41  sort: asc
42  filters:
43    exclude:
44      - "^docs:"
45      - "^test:"
46
47upx:
48  - # Templates: allowed.
49    enabled: true
50
51    # Filter by build ID.
52    ids: [default]
53
54    # Filter by GOOS.
55    goos: [linux, darwin]
56
57    # Filter by GOARCH.
58    goarch: [amd64, arm64]
59
60    # Compress argument.
61    # Valid options are from '1' (faster) to '9' (better), and 'best'.
62    compress: 9