diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 68d1d895..5831dd21 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -72,6 +72,7 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} - uses: actions/upload-artifact@v2 with: name: dist diff --git a/.goreleaser.yml b/.goreleaser.yml index 4e09c720..659abf50 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -36,3 +36,15 @@ brews: (bash_completion/"{{ .ProjectName }}").write output output = Utils.safe_popen_read("#{bin}/{{ .ProjectName }}", "completion", "zsh") (zsh_completion/"_{{ .ProjectName }}").write output +nfpms: + - id: packages + formats: + - deb + - rpm + maintainer: Gabe Cook +publishers: + - name: fury.io + ids: + - packages + dir: "{{ dir .ArtifactPath }}" + cmd: curl -sf -Fpackage=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/clevyr/ diff --git a/README.md b/README.md index 16ce77ac..7efeae18 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,66 @@ to configure itself via the Kubernetes EnvVar API. ## Installation -To install kubedb, run the following command: +### Homebrew (macOS, Linux) -```shell -brew install clevyr/tap/kubedb -``` +
+ Click to expand + + ```shell + brew install clevyr/tap/kubedb + ``` +
+ +### APT Repository (Ubuntu, Debian) + +
+ Click to expand + +1. If you don't have it already, install the `ca-certificates` package + ```shell + apt install ca-certificates + ``` + +2. Add Clevyr's apt repository to `/etc/apt/sources.list.d/clevyr.list` + ``` + deb [trusted=yes] https://apt.clevyr.com / + ``` + +3. Update apt repositories + ```shell + apt update + ``` + +4. Install yampl + ```shell + apt install kubedb + ``` +
+ +### RPM Repository (CentOS, RHEL) + +
+ Click to expand + +1. If you don't have it already, install the `ca-certificates` package + ```shell + yum install ca-certificates + ``` + +2. Add Clevyr's rpm repository to `/etc/yum.repos.d/clevyr.repo` + ```ini + [clevyr] + name=Clevyr + baseurl=https://rpm.clevyr.com + enabled=1 + gpgcheck=0 + ``` + +3. Install yampl + ```shell + yum install kubedb + ``` +
Kubedb requires an existing Kubeconfig. See below for details.