Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate dep and rpm packages during release process #44

Merged
merged 1 commit into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ brews:
test: |
help_text = shell_output("#{bin}/fastly --help")
assert_includes help_text, "Usage:"
nfpms:
- license: Apache 2.0
maintainer: Fastly
homepage: https://github.com/fastly/cli
bindir: /usr/local
formats:
- deb
- rpm
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS"
snapshot:
Expand Down
43 changes: 39 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,49 @@

A CLI for interacting with the Fastly platform.

## Install
## Quick links
- [Installation](#Installation)
- [Usage](#Usage)
- [Development](#Development)
- [Issues](#Issues)

### Homebrew
## Installation

### macOS
#### Homebrew

Install: `brew install fastly/tap/fastly`

Upgrade: `brew upgrade fastly`

### Debian/Ubuntu Linux

Install and upgrade:

1. Download the `.deb` file from the [releases page][releases]
2. `sudo apt install ./fastly_*_linux_amd64.deb` install the downloaded file

### Fedora Linux

Install and upgrade:

1. Download the `.rpm` file from the [releases page][releases]
2. `sudo dnf install fastly_*_linux_amd64.rpm` install the downloaded file

### Centos Linux

Install and upgrade:

1. Download the `.rpm` file from the [releases page][releases]
2. `sudo yum localinstall fastly_*_linux_amd64.rpm` install the downloaded file

### openSUSE/SUSE Linux

Install and upgrade:

1. Download the `.rpm` file from the [releases page][releases]
2. `sudo zypper in fastly_*_linux_amd64.rpm` install the downloaded file

### From a prebuilt binary
[Download the latest release][latest] from the [releases page][releases].
Unarchive the binary and place it in your $PATH. You can verify the integrity
Expand All @@ -30,7 +65,7 @@ Built with go version go1.13.1 linux/amd64
The Fastly CLI will notify you if a new version is available, and can update
itself via `fastly update`.

## Use
## Usage

The Fastly CLI interacts with [the Fastly API][api] via an [API token][tokens].
You'll need to [create an API token][create] for yourself, and then provide it
Expand All @@ -49,7 +84,7 @@ Succinct help about any command or subcommand is available via the `-h, --help`
flag. Verbose help about any command or subcommand is available via the help
argument, e.g. `fastly help service`.

## Developing
## Development

The Fastly CLI requires [Go 1.13 or above](https://golang.org). Clone this repo
to any path and type `make` to run all of the tests and generate a development
Expand Down