From f6222991726c2f576b539ca708e274e0ef2486b8 Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Fri, 15 Nov 2024 11:57:26 +0100 Subject: [PATCH] Remove latest plugin upload to GCS --- .github/workflows/upload-plugins.yaml | 59 --------------------------- .goreleaser.yml | 2 +- helm/botkube/values.yaml | 2 +- 3 files changed, 2 insertions(+), 61 deletions(-) delete mode 100644 .github/workflows/upload-plugins.yaml diff --git a/.github/workflows/upload-plugins.yaml b/.github/workflows/upload-plugins.yaml deleted file mode 100644 index 8597f31ea..000000000 --- a/.github/workflows/upload-plugins.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: Publish plugins -on: - push: - branches: - - main -jobs: - publish_plugins: - runs-on: ubuntu-latest - env: - GO111MODULE: on - GOPATH: /home/runner/work/botkube - GOBIN: /home/runner/work/botkube/bin - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: GCP auth - uses: 'google-github-actions/auth@v1' - with: - credentials_json: ${{ secrets.PLUGINS_BUCKET_CREDENTIALS }} - - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v1' - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - cache: true - - name: Install GoReleaser - uses: goreleaser/goreleaser-action@v5 - with: - install-only: true - version: latest - - name: Build all plugins into dist directory - env: - GORELEASER_CURRENT_TAG: "v0.0.0-latest" - PLUGIN_DOWNLOAD_URL_BASE_PATH: "https://storage.googleapis.com/botkube-plugins-latest" - OUTPUT_MODE: "archive" - run: | - make gen-plugins-index - - name: Upload plugins to GCS - uses: google-github-actions/upload-cloud-storage@v1 - with: - path: 'plugin-dist' - destination: 'botkube-plugins-latest/' - glob: '*.tar.gz' - parent: false - - name: Upload plugin index to GCS - uses: google-github-actions/upload-cloud-storage@v1 - with: - path: 'plugins-index.yaml' - destination: 'botkube-plugins-latest/' - - name: Upload plugin index to GCS - uses: google-github-actions/upload-cloud-storage@v1 - with: - path: 'plugins-dev-index.yaml' - destination: 'botkube-plugins-latest/' - - name: 'Disable caching' - run: 'gsutil -m setmeta -h "Cache-Control: no-cache, no-store" gs://botkube-plugins-latest/*' diff --git a/.goreleaser.yml b/.goreleaser.yml index 09fd5745a..1ea43b2bd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -81,7 +81,7 @@ release: # Prerequisites: # - build plugin binaries # - build plugin index.yaml - extra_files: + extra_files:*default-plugin-context - glob: ./plugin-dist/executor_*.tar.gz - glob: ./plugin-dist/source_*.tar.gz - glob: ./plugins-index.yaml diff --git a/helm/botkube/values.yaml b/helm/botkube/values.yaml index 472d93594..206309efa 100644 --- a/helm/botkube/values.yaml +++ b/helm/botkube/values.yaml @@ -911,7 +911,7 @@ plugins: repositories: # -- This repository serves officially supported Botkube plugins. botkube: - url: https://storage.googleapis.com/botkube-plugins-latest/plugins-index.yaml + url: https://github.com/kubeshop/botkube/releases/download/v1.14.0/plugins-index.yaml # headers: {} # optional headers for plugins repository. botkubeExtra: url: https://github.com/kubeshop/botkube-plugins/releases/download/v1.14.0/plugins-index.yaml