-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0159c3
commit d9d51e2
Showing
3 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,29 @@ | ||
name: release | ||
on: | ||
push: | ||
branches: | ||
- 'release-bot' | ||
tags: | ||
- 'v*.*.*' | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Install duggan/bats | ||
run: | | ||
sudo add-apt-repository ppa:duggan/bats --yes && \ | ||
sudo apt-get update -qq && \ | ||
sudo apt-get install -qq bats | ||
- name: Install kubectl | ||
run: | | ||
sudo curl -fsSL -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.13.1/bin/linux/amd64/kubectl && \ | ||
sudo chmod +x /usr/bin/kubectl | ||
- name: Run kubectx tests | ||
run: | | ||
basename /usr/bin && \ | ||
bats test/kubectx.bats && \ | ||
shellcheck kubectx | ||
env: | ||
TERM: xterm | ||
- name: Run kubens tests | ||
run: | | ||
basename /usr/bin && \ | ||
bats test/kubens.bats && \ | ||
shellcheck kubens | ||
env: | ||
TERM: xterm | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: "v0.7.2" | ||
release_name: Release "v0.7.2" | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
- name: Update new version for plugin 'ctx' in krew-index | ||
uses: rajatjindal/krew-release-bot@v0.0.31 | ||
with: | ||
krew_template_file: .krew/ctx.yaml | ||
- name: Update new version for plugin 'ns' in krew-index | ||
uses: rajatjindal/krew-release-bot@v0.0.31 | ||
with: | ||
krew_template_file: .krew/ns.yaml | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: ctx | ||
spec: | ||
homepage: https://github.com/ahmetb/kubectx | ||
shortDescription: Switch between contexts in your kubeconfig | ||
version: {{ .TagName }} | ||
description: | | ||
Also known as "kubectx", a utility to switch between context entries in | ||
your kubeconfig file efficiently. | ||
caveats: | | ||
If fzf is installed on your machine, you can interactively choose | ||
between the entries using the arrow keys, or by fuzzy searching | ||
as you type. | ||
See https://github.com/ahmetb/kubectx for customization and details. | ||
platforms: | ||
- selector: | ||
matchExpressions: | ||
- key: os | ||
operator: In | ||
values: | ||
- darwin | ||
- linux | ||
{{addURIAndSha "https://github.com/ahmetb/kubectx/archive/{{ .TagName }}.tar.gz" .TagName }} | ||
bin: kubectx | ||
files: | ||
- from: kubectx-*/kubectx | ||
to: . | ||
- from: kubectx-*/LICENSE | ||
to: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: ns | ||
spec: | ||
homepage: https://github.com/ahmetb/kubectx | ||
shortDescription: Switch between Kubernetes namespaces | ||
version: {{ .TagName }} | ||
description: | | ||
Also known as "kubens", a utility to set your current namespace and switch | ||
between them. | ||
caveats: | | ||
If fzf is installed on your machine, you can interactively choose | ||
between the entries using the arrow keys, or by fuzzy searching | ||
as you type. | ||
See https://github.com/ahmetb/kubectx for customization and details. | ||
platforms: | ||
- selector: | ||
matchExpressions: | ||
- key: os | ||
operator: In | ||
values: | ||
- darwin | ||
- linux | ||
{{addURIAndSha "https://github.com/ahmetb/kubectx/archive/{{ .TagName }}.tar.gz" .TagName }} | ||
bin: kubens | ||
files: | ||
- from: kubectx-*/kubens | ||
to: . | ||
- from: kubectx-*/LICENSE | ||
to: . |