Skip to content

Commit

Permalink
feat(goreleaser): Add AUR package
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 16, 2023
1 parent 403cc23 commit ccc9381
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
license: GPL-3.0
private_key: '{{ .Env.AUR_SSH_KEY }}'
git_url: ssh://[email protected]/{{ .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: [email protected]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ docker run --rm -it -v "$HOME/.kube:/.kube" -v "$PWD:/data" ghcr.io/clevyr/kubed
```
</details>

### AUR (Arch Linux)

<details>
<summary>Click to expand</summary>

Install [kubedb-bin](https://aur.archlinux.org/packages/kubedb-bin) with your [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) of choice.
</details>


KubeDB requires an existing Kubeconfig. See below for details.

## Usage
Expand Down

0 comments on commit ccc9381

Please sign in to comment.