-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds more OS and ARCH types - Standardizes our release artifacts - Adds checksums
- Loading branch information
Showing
4 changed files
with
60 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Builds | ||
bin | ||
dist/ | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# For more options see: https://goreleaser.com/customization | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
- go mod vendor | ||
|
||
project_name: log-cache | ||
|
||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
|
||
archives: | ||
- format: tar.gz | ||
name_template: >- | ||
{{- .ProjectName }}_ | ||
{{- .Version }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
snapshot: | ||
name_template: "{{ incpatch .Version }}-dev" | ||
|
||
changelog: | ||
skip: true | ||
|
||
release: | ||
draft: true | ||
header: ":sparkles: built with {{ .Env.GOVERSION }}\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,20 @@ | ||
# Log Cache cf CLI Plugin | ||
|
||
[![GoDoc][go-doc-badge]][go-doc] | ||
A [Cloud Foundry CLI](https://github.com/cloudfoundry/cli) plugin for interacting with the | ||
[Log Cache BOSH release](https://github.com/cloudfoundry/log-cache-release). | ||
|
||
A [cf CLI](https://github.com/cloudfoundry/cli) plugin for interacting with | ||
[Log Cache](https://github.com/cloudfoundry/log-cache). | ||
|
||
If you have any questions, or want to get attention for a PR or issue please reach out on the [#logging-and-metrics channel in the cloudfoundry slack](https://cloudfoundry.slack.com/archives/CUW93AF3M) | ||
If you have any questions, or want to get attention for a PR or issue please reach out on the [#logging-and-metrics channel in Cloud Foundry slack](https://cloudfoundry.slack.com/archives/CUW93AF3M) | ||
|
||
![Plugin Demo](./docs/Plugin-demo.gif) | ||
|
||
## Installing | ||
|
||
Install directly from the [Cloud Foundry CLI Plugin Repository](https://github.com/cloudfoundry/cli-plugin-repo): | ||
``` | ||
```bash | ||
cf install-plugin -r CF-Community "log-cache" | ||
``` | ||
|
||
Or, you can download a pre-built binary from GitHub: | ||
``` | ||
# Linux | ||
wget https://github.com/cloudfoundry/log-cache-cli/releases/latest/download/log-cache-cf-plugin-linux | ||
cf install-plugin -f log-cache-cf-plugin-linux | ||
# OSX | ||
wget https://github.com/cloudfoundry/log-cache-cli/releases/latest/download/log-cache-cf-plugin-darwin | ||
cf install-plugin -f log-cache-cf-plugin-darwin | ||
# Windows | ||
wget https://github.com/cloudfoundry/log-cache-cli/releases/latest/download/log-cache-cf-plugin-windows | ||
cf install-plugin -f log-cache-cf-plugin-windows | ||
``` | ||
|
||
Alternatively, you can build from source: | ||
``` | ||
git clone [email protected]:cloudfoundry/log-cache-cli.git | ||
cd log-cache-cli | ||
scripts/install.sh | ||
``` | ||
Or, download a pre-built binary from [releases](https://github.com/cloudfoundry/log-cache-cli/releases/latest). | ||
|
||
## Creating Releases | ||
|
||
|