mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-07-04 19:16:12 +00:00
parent
11c19c0fb7
commit
9d9f27ba17
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -27,6 +27,12 @@ jobs:
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- name: Install Snapcraft
|
||||
uses: samuelmeuli/action-snapcraft@v1
|
||||
- name: Setup Snapcraft
|
||||
run: |
|
||||
mkdir -p $HOME/.cache/snapcraft/download
|
||||
mkdir -p $HOME/.cache/snapcraft/stage-packages
|
||||
- name: GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
@ -42,3 +48,7 @@ jobs:
|
||||
uses: rajatjindal/krew-release-bot@v0.0.38
|
||||
with:
|
||||
krew_template_file: .krew/ns.yaml
|
||||
- name: Publish Snaps to the Snap Store (stable channel)
|
||||
run: for snap in $(ls dist/*.snap); do snapcraft upload --release=stable $snap; done
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
||||
|
@ -98,3 +98,20 @@ release:
|
||||
extra_files:
|
||||
- glob: ./kubens
|
||||
- glob: ./kubectx
|
||||
snapcrafts:
|
||||
- id: kubectx
|
||||
name: kubectx
|
||||
summary: 'kubectx + kubens: Power tools for kubectl'
|
||||
description: |
|
||||
kubectx is a tool to switch between contexts (clusters) on kubectl faster.
|
||||
kubens is a tool to switch between Kubernetes namespaces (and configure them for kubectl) easily.
|
||||
grade: stable
|
||||
confinement: classic
|
||||
base: core20
|
||||
apps:
|
||||
kubectx:
|
||||
command: kubectx
|
||||
completer: completion/kubectx.bash
|
||||
kubens:
|
||||
command: kubens
|
||||
completer: completion/kubens.bash
|
||||
|
Loading…
Reference in New Issue
Block a user