Repository navigation
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
95 lines (87 loc) · 3.3 KB
/
Copy path.goreleaser.yaml
File metadata and controls
95 lines (87 loc) · 3.3 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
project_name: devbox
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/devbox/main.go
binary: devbox
flags:
- -trimpath
mod_timestamp: "{{ .CommitTimestamp }}" # For reproducible builds
ldflags:
- -s -w
- -X go.jetify.com/devbox/internal/build.Version={{.Version}}
- -X go.jetify.com/devbox/internal/build.Commit={{.Commit}}
- -X go.jetify.com/devbox/internal/build.CommitDate={{.CommitDate}}
- -X go.jetify.com/devbox/internal/build.SentryDSN={{ .Env.SENTRY_DSN }}
- -X go.jetify.com/devbox/internal/build.TelemetryKey={{ .Env.TELEMETRY_KEY }}
- -X go.jetify.com/devbox/internal/build.Launcher=true
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm64
- arm
goarm:
- 7
archives:
- files:
- no-files-will-match-* # Glob that does not match to create archive with only binaries.
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if eq .Arch "arm" }}v{{ .Arm }}l{{ end }}'
snapshot:
name_template: "{{ .Env.EDGE_TAG }}"
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
# This disables the *release* pipe only: goreleaser still builds every binary,
# archive and checksum into dist/ exactly as before. All it no longer does is
# create the GitHub release and upload the assets — cli-release does that with
# `gh release upload`, onto the draft scripts/release.ts made (title,
# hand-written notes, prerelease flag) before the tag was pushed.
#
# goreleaser used to do the upload with `use_existing_draft: true`, but that
# matches an existing draft by *title* (`r.GetDraft() && r.GetName() == tag` in
# its findDraftRelease), not by tag. Any draft whose title isn't verbatim the
# tag — i.e. every release with a real title — went unmatched and goreleaser
# silently created a second draft for the same tag, with a bare list of commit
# SHAs for notes and all the artifacts on it. That is what happened to 0.17.5
# and 0.18.0. Even a matched draft had its title overwritten by
# `name_template`, so a custom title could never survive.
disable: true
github:
owner: jetify-com
name: devbox
announce:
discord:
# Whether its enabled or not.
# Defaults to false.
enabled: false
# Message template to use while publishing.
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
message_template: |
**New Release: Devbox {{.Tag}}**
We just released a version {{.Tag}} of `devbox`.
Description:
{{.TagBody}}
Release: {{.ReleaseURL}}
Updating:
If you installed devbox via our recommended installer
(`curl -fsSL https://get.jetpack.io/devbox | bash`) you will get the new version
_automatically_, the next time you run `devbox`
Thanks,
jetpack.io
# Set author of the embed.
# Defaults to `GoReleaser`
author: "jetpack.io"
# Color code of the embed. You have to use decimal numeral system, not hexadecimal.
# Defaults to `3888754` - the grey-ish from goreleaser
color: "2622553" #This is the Jetpack Space color
# URL to an image to use as the icon for the embed.
# Defaults to `https://goreleaser.com/static/avatar.png`
icon_url: ""