forked from capnoid/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
77 lines (76 loc) · 2.14 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Docs: https://goreleaser.com/
project_name: airplane
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/airplane/main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/airplanedev/cli/pkg/version.version={{.Version}}
- -X github.com/airplanedev/cli/pkg/version.prerelease={{.Prerelease}}
- -X github.com/airplanedev/cli/pkg/version.date={{.Date}}
- -X github.com/airplanedev/cli/pkg/analytics.segmentWriteKey={{.Env.SEGMENT_WRITE_KEY}}
- -X github.com/airplanedev/cli/pkg/analytics.sentryDSN={{.Env.SENTRY_DSN}}
goos:
- linux
- windows
- darwin
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
- goos: windows
goarch: 386
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- id: archive
files: [only-the-binary*]
wrap_in_directory: false
# This is the default name_template, but without the version. This allows install.sh to compute the
# latest artifact name without knowing the version.
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
amd64: x86_64
- id: binary
format: binary
files: [only-the-binary*]
replacements:
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
brews:
- tap:
owner: airplanedev
name: homebrew-tap
homepage: "https://airplane.dev"
ids:
- archive
test: |
system "#{bin}/airplane help"
commit_author:
name: AirplaneBot
email: [email protected]
install: |
bin.install "airplane"
skip_upload: auto
release:
prerelease: auto
extra_files:
# Upload our installation scripts as release artifacts:
- glob: ./scripts/install.sh
- glob: ./scripts/install.ps1
dockers:
-
image_templates:
- us-docker.pkg.dev/airplane-prod/public/cli:latest
- us-docker.pkg.dev/airplane-prod/public/cli:{{ trimprefix .Tag "v" }}
- us-docker.pkg.dev/airplane-prod/public/cli:{{ .Major }}.{{ .Minor }}
skip_push: auto