-
Notifications
You must be signed in to change notification settings - Fork 464
Expand file tree
/
Copy path.goreleaser.nonprod.yaml
More file actions
56 lines (51 loc) · 1.88 KB
/
Copy path.goreleaser.nonprod.yaml
File metadata and controls
56 lines (51 loc) · 1.88 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
# Per-commit publish of git-remote-entire, keyed by full commit sha, to
# the anonymous-read public release bucket. Consumed by Buildkite Cloud
# hosted agents (which have no AWS creds and no Homebrew) so they can
# resolve `git clone entire://…` — see the entire-core-auth Buildkite
# plugin's environment hook, which pins a sha from this pipeline.
#
# This lived in entiredb's .goreleaser.nonprod.yaml until the command
# moved here; the bucket and IAM role are defined in
# infra/aws/entire-nonprod/public-release-bucket/.
#
# Tagged releases (.goreleaser.yaml) are unaffected: this config is only
# run by the publish-git-remote-entire workflow on pushes to main.
builds:
- id: git-remote-entire
main: ./cmd/git-remote-entire
binary: git-remote-entire
env:
- CGO_ENABLED=0
# Buildkite Cloud hosted agents are always linux; nothing else
# consumes these artifacts.
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
# No Version stamp: the workflow's throwaway v0.0.0 tag would be
# stamped verbatim. versioninfo.Load() falls back to build info,
# so the binary still self-reports the commit it was built from.
- -X github.com/entireio/cli/cmd/entire/cli/versioninfo.Commit={{.ShortCommit}}
archives:
- id: git-remote-entire
ids:
- git-remote-entire
formats: [tar.gz]
# OS and arch spelled to match `uname` output, which is how the
# Buildkite plugin assembles the download URL.
name_template: git-remote-entire_{{ .Os }}_{{ .Arch }}
blobs:
- ids:
- git-remote-entire
provider: s3
bucket: entire-public-release-bucket-7f3e2a01c9b48d56
region: us-east-2
# The bucket policy only allows anonymous reads under commit/*.
directory: "commit/{{.FullCommit}}"
release:
disable: true