-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.goreleaser.linux.amd64.yaml
61 lines (48 loc) · 1.81 KB
/
.goreleaser.linux.amd64.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: sling
before:
hooks:
- go mod edit -dropreplace='github.com/flarco/g' go.mod
- go mod edit -dropreplace='github.com/slingdata-io/sling' go.mod
- go mod edit -droprequire='github.com/slingdata-io/sling' go.mod
- go mod tidy
builds:
- main: ./cmd/sling
env:
- CGO_ENABLED=1
tags:
- fts5
goarch:
- amd64
goos:
- linux
ldflags:
- "-X 'github.com/slingdata-io/sling-cli/core.Version={{.Version}}' -X 'github.com/slingdata-io/sling-cli/core/env.PlausibleURL={{.Env.PLAUSIBLE_URL}}' -X 'github.com/slingdata-io/sling-cli/core/env.SentryDsn={{.Env.SENTRY_DSN}}'"
snapshot:
name_template: "{{ incpatch .Version }}"
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
checksum:
name_template: '{{ .Runtime.Goos }}.{{ .Runtime.Goarch }}.checksums.txt'
dockers:
- dockerfile: 'cmd/sling/Dockerfile'
image_templates:
- "slingdata/sling:{{ .Tag }}"
- "slingdata/sling:{{ .Tag }}-amd64"
- "slingdata/sling:latest-amd64"
- "slingdata/sling:latest"
# https://goreleaser.com/cookbooks/multi-platform-docker-images/#creating-multi-platform-docker-images-with-goreleaser
# docker_manifests:
# - name_template: 'slingdata/sling:latest'
# image_templates:
# - 'slingdata/sling:{{ .Tag }}-amd64'
# - 'slingdata/sling:{{ .Tag }}-arm64'
# - name_template: 'slingdata/sling:{{ .Tag }}'
# image_templates:
# - 'slingdata/sling:{{ .Tag }}-amd64'
# - 'slingdata/sling:{{ .Tag }}-arm64'
release:
mode: replace
header: |
## Sling {{ .Tag }} ({{ .Date }})