Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,20 @@ jobs:
run: MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.tag }} CLEAN_BUILD=1 make images
- name: build plugin artifact
run: IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.tag }} make release
- name: conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: create github release
uses: actions/create-release@v1
id: create_release
with:
draft: true
draft: false
prerelease: false
release_name: ${{ env.tag }}
tag_name: ${{ env.tag }}
body_path: ./tmp/release.md
body: ${{ steps.changelog.outputs.clean_changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: push plugin artifact
Expand All @@ -64,4 +69,6 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: netobserv-cli.tar.gz
asset_name: netobserv-cli.tar.gz
asset_content_type: application/gzip
asset_content_type: application/gzip
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.47
27 changes: 27 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: netobserv
spec:
version: "{{ .TagName }}"
homepage: https://github.com/netobserv/network-observability-cli
shortDescription: "Lightweight Flow and Packet visualization tool"
description: |
Deploys NetObserv eBPF agent on your k8s cluster to collect flows
or packets from nodes network interfaces and streams data to a local
collector for analysis and visualization.
platforms:
- selector:
matchExpressions:
- key: "os"
operator: "In"
values:
- darwin
- linux
{{addURIAndSha ""https://github.com/netobserv/network-observability-cli/releases/download/{{ .TagName }}/netobserv-cli.tar.gz"" .TagName }}
files:
- from: "build/netobserv"
to: "netobserv"
- from: "LICENSE"
to: "."
bin: netobserv
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,9 @@ update-config: ## Update config from operator repo
./scripts/update-config.sh

.PHONY: release
release: clean ## Generate tar.gz containing krew plugin and display krew updated index
release: clean ## Generate tar.gz containing krew plugin
$(MAKE) KREW_PLUGIN=true kubectl-commands
tar -czf netobserv-cli.tar.gz LICENSE ./build/netobserv
@echo "### Generating krew index yaml"
IMAGE_ORG=${IMAGE_ORG} \
VERSION=$(VERSION) \
./scripts/krew.sh

.PHONY: create-kind-cluster
create-kind-cluster: prereqs ## Create a kind cluster
Expand Down
50 changes: 0 additions & 50 deletions scripts/krew.sh

This file was deleted.