Skip to content

Commit

Permalink
krew added (flyteorg#173)
Browse files Browse the repository at this point in the history
* krew added
* change plugin name
* Added release trigger
* Added check for prerelease
* Added action trigger on release

Co-authored-by: Haytham AbuelFutuh <[email protected]>
  • Loading branch information
yindia and EngHabu authored Jan 29, 2021
1 parent c43efb6 commit 2e5f4a4
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
19 changes: 19 additions & 0 deletions flytepropeller/.github/workflows/krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: releaser
on:
release:
types:
- published

jobs:
release-cli-via-krew:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Update new version in krew-index
if: "!github.event.release.prerelease"
uses: rajatjindal/[email protected]
33 changes: 33 additions & 0 deletions flytepropeller/.krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: flyte
spec:
version: "{{ .TagName }}"
homepage: https://github.com/lyft/flyte
shortDescription: Monitor, launch and manage flyte executions
description: |+2
Kubectl-flyte can be used to manage workflows in a kubernetes cluster executed by FlytePropeller. Users can monitor, visualize executing workflows, delete/terminate executions in bulk, dive into quota utilization for tenants. The tool allows users to launch yaml based Flyte workflows without needing FlyteAdmin etc. For more information about Flyte refer to https://flyte.org
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/lyft/flytepropeller/releases/download/{{ .TagName }}/kubectl-flyte_{{ .TagName }}_darwin_x86_64.tar.gz" .TagName | indent 6}}
files:
- from: kubectl-flyte
to: flyte
- from: LICENSE
to: .
bin: flyte
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/lyft/flytepropeller/releases/download/{{ .TagName }}/kubectl-flyte_{{ .TagName }}_linux_x86_64.tar.gz" .TagName | indent 6}}
files:
- from: kubectl-flyte
to: flyte
- from: LICENSE
to: .
bin: flyte

0 comments on commit 2e5f4a4

Please sign in to comment.