From 21ed261fcb46e597d45b88fda7ec5765344e568b Mon Sep 17 00:00:00 2001 From: ypoplavs Date: Mon, 18 Nov 2024 16:59:01 +0200 Subject: [PATCH] add dispatch to release ci --- .../docker-build-api-executors-tag.yaml | 29 +++++-------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/docker-build-api-executors-tag.yaml b/.github/workflows/docker-build-api-executors-tag.yaml index fef18588e3..4f8acf86da 100644 --- a/.github/workflows/docker-build-api-executors-tag.yaml +++ b/.github/workflows/docker-build-api-executors-tag.yaml @@ -942,25 +942,10 @@ jobs: with: strip_v: false - - name: Editing helm-release repo with version based on a Tag pushed. - run: | - - # Setting up Git: - git clone https://kubeshop-bot:$GH_TOKEN@github.com/kubeshop/helm-charts - cd ./helm-charts - git config user.name "kubeshop-bot" - git config user.email "kubeshop-bot@kubeshop.io" - - export GH_TOKEN - export RELEASE_VERSION - export SERVICE - - git fetch origin main - git checkout main - cd ./scripts - ./chart_releaser.sh --helm-chart-folder testkube-$SERVICE - - env: - SERVICE: api - GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }} - RELEASE_VERSION: ${{ steps.tag.outputs.tag }} + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.CI_BOT_TOKEN }} + repository: kubeshop/helm-charts + event-type: release-testkube-api-charts + client-payload: '{"RELEASE_VERSION": "${{ steps.tag.outputs.tag }}", "SERVICE": "api"}'