Skip to content

Commit

Permalink
use goreleaser to publish krew plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
snooyen committed May 4, 2022
1 parent f3ba642 commit 3f59d58
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 97 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/auto-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,3 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PAT_ORG_ADMIN_REPO_ALL }}

- name: Update plugin manifest version
uses: jacobtomlinson/gha-find-replace@v2
with:
include: "krew.template.yaml"
find: "$VERSION"
replace: "${{ steps.release-drafter-pre.outputs.tag_name }}"

- name: Update Plugin Manifest
run: cp krew.template.yaml plugins/bai-config.yaml

- name: Commit Plugin Manifest Update
uses: test-room-7/action-update-file@v1
with:
file-path: plugins/bai-config.yaml
commit-msg: Updating krew plugin manifest for ${{ steps.release-drafter-pre.outputs.tag_name }}
github-token: ${{ secrets.PAT_ORG_ADMIN_REPO_ALL }}
15 changes: 15 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ archives:
wrap_in_directory: "false"
format: tar.gz
files: []

krews:
- name: bai-config
index:
owner: BrightDotAi
name: kubectl-bai-config
homepage: https://github.com/BrightDotAi/kubectl-bai-config
short_description: Generate a kubeconfig for access to BrightAI Kubernetes clusters via Okta OIDC
description: |
This plugin authenticates to BrightAI Spacelift and reads EKS and OIDC
stack outputs to generate a valid `kubeconfig` file for authentication
to BrightAI Kubernetes clusters.
caveats: |
* Users must have read access to the `EKS`` and `OKTA-OIDC-EKS-AUTH`
component outputs in Spacelift.
40 changes: 0 additions & 40 deletions krew.template.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions plugins/bai-config.yaml

This file was deleted.

0 comments on commit 3f59d58

Please sign in to comment.