From 6028f0f6a814f6d16ff3a12f643e8d38a73145e9 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Mon, 9 May 2022 15:09:03 -0500 Subject: [PATCH] :construction_worker: Add apt/yum repo publish --- .github/workflows/go.yml | 1 + .goreleaser.yml | 12 ++++++++ README.md | 63 +++++++++++++++++++++++++++++++++++++--- 3 files changed, 72 insertions(+), 4 deletions(-) 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.