From ccc938168af3a7fa92a41c6cdb90310f35c3a9da Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 16 Aug 2023 00:25:38 -0500 Subject: [PATCH] feat(goreleaser): Add AUR package --- .github/workflows/build.yml | 1 + .goreleaser.yml | 22 ++++++++++++++++++++++ README.md | 9 +++++++++ 3 files changed, 32 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 490fe72..06c0db7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,6 +78,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} FURY_TOKEN: ${{ secrets.FURY_TOKEN }} + AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} - uses: actions/upload-artifact@v3 with: name: dist diff --git a/.goreleaser.yml b/.goreleaser.yml index 0495fed..ab55961 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -104,3 +104,25 @@ publishers: - packages dir: "{{ dir .ArtifactPath }}" cmd: curl -sf -Fpackage=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/clevyr/ +aurs: + - name: "{{ .ProjectName }}-bin" + homepage: https://github.com/clevyr/kubedb + description: Painlessly work with Kubernetes databases + maintainers: + - Gabe Cook + license: GPL-3.0 + private_key: '{{ .Env.AUR_SSH_KEY }}' + git_url: ssh://aur@aur.archlinux.org/{{ .ProjectName }}-bin.git + skip_upload: auto + package: |- + # bin + install -Dm755 "./{{ .ProjectName }}" "${pkgdir}/usr/bin/{{ .ProjectName }}" + # license + install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/{{ .ProjectName }}/LICENSE" + # completion + install -Dm644 "./completions/{{ .ProjectName }}.bash" "${pkgdir}/usr/share/bash-completion/completions/{{ .ProjectName }}" + install -Dm644 "./completions/{{ .ProjectName }}.zsh" "${pkgdir}/usr/share/zsh/site-functions/_{{ .ProjectName }}" + install -Dm644 "./completions/{{ .ProjectName }}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/{{ .ProjectName }}.fish" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com diff --git a/README.md b/README.md index 52e719c..578b2a1 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,15 @@ docker run --rm -it -v "$HOME/.kube:/.kube" -v "$PWD:/data" ghcr.io/clevyr/kubed ``` +### AUR (Arch Linux) + +
+ Click to expand + +Install [kubedb-bin](https://aur.archlinux.org/packages/kubedb-bin) with your [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) of choice. +
+ + KubeDB requires an existing Kubeconfig. See below for details. ## Usage