~bigbes/ci-cacher

ref: 1c1f3858362fde7d1147949bc3c1bdfea4623674 ci-cacher/.goreleaser.yml -rw-r--r-- 1.4 KiB
1c1f3858 — Eugene Blikh publish.yml: hut version (not --version) 2 days ago
                                                                                
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
50
51
52
# Goreleaser config for cross-platform cacher builds.
#
# Invoked from .builds/publish.yml as `goreleaser release --clean --skip=publish`
# on tag pushes — we only want the binaries + checksums, not a GitHub
# release (we publish to pages.sr.ht and the build artifacts list).
version: 2

project_name: cacher

before:
  hooks:
    - go mod tidy

builds:
  - id: cacher
    main: .
    binary: cacher
    env:
      - CGO_ENABLED=0
    flags:
      - -trimpath
    ldflags:
      - -s -w
      - -X go.bigb.es/cacher/internal/version.version={{ .Version }}
    goos: [linux, darwin]
    goarch: [amd64, arm64]

archives:
  # Ship raw binaries rather than tarballs so the wget URL
  # `…/cacher-linux-amd64` works directly. The {{ .Version }} prefix lives
  # in the goreleaser dist/ filenames but we strip it when copying into
  # the pages tree (see .builds/publish.yml).
  - id: binary
    formats: [binary]
    name_template: "cacher_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

checksum:
  name_template: "checksums.txt"
  algorithm: sha256

snapshot:
  version_template: "{{ .Tag }}-snapshot"

changelog:
  # We maintain CHANGELOG.md by hand. Don't autogenerate from git log.
  disable: true

release:
  # We publish via pages.sr.ht + build artifacts; there's no GitHub repo to
  # release to. `goreleaser release --skip=publish` already inhibits the
  # release step, but disabling here keeps `goreleaser check` happy.
  disable: true