From eb2d10f42d0a82039f7a4f6f20cd2768aea48a5c Mon Sep 17 00:00:00 2001 From: Mateusz Szostok Date: Thu, 22 Feb 2024 02:08:05 -0800 Subject: [PATCH] Introduce dev plugins support (#7) --- .github/workflows/branch-pr-build.yml | 2 +- Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-pr-build.yml b/.github/workflows/branch-pr-build.yml index ea321bc5..16fa9aa5 100644 --- a/.github/workflows/branch-pr-build.yml +++ b/.github/workflows/branch-pr-build.yml @@ -120,7 +120,7 @@ jobs: PLUGIN_DOWNLOAD_URL_BASE_PATH: "" run: | make build-plugins-archives - USE_ARCHIVE=true make gen-plugin-index + USE_ARCHIVE=true make gen-dev-plugin-index - name: Upload plugins to GCS uses: google-github-actions/upload-cloud-storage@v2 diff --git a/Makefile b/Makefile index d88d5ad2..a8fd9f0e 100644 --- a/Makefile +++ b/Makefile @@ -18,10 +18,17 @@ build-plugins-archives: ## Builds all plugins for all defined platforms in form # Generating # ############## +USE_ARCHIVE ?= true + gen-plugin-index: ## Generate plugins YAML index file. - go run github.com/kubeshop/botkube/hack -binaries-path "./dist" -use-archive=$(USE_ARCHIVE) + go run github.com/kubeshop/botkube/hack -binaries-path "./dist" -plugin-name-filter 'doctor|exec|flux|helm|argocd|github-events|keptn|prometheus' -use-archive=$(USE_ARCHIVE) .PHONY: gen-plugin-index + +gen-dev-plugin-index: ## Generate plugins YAML index file with all plugins. + go run github.com/kubeshop/botkube/hack -binaries-path "./dist" -use-archive=$(USE_ARCHIVE) +.PHONY: gen-dev-plugin-index + gen-plugins-goreleaser: # Generate Goreleaser config for plugins go run github.com/kubeshop/botkube/hack/target/gen-goreleaser