From d37ab7c7e2310668037b9561bf59eeeb3513c3ef Mon Sep 17 00:00:00 2001 From: ypoplavs Date: Mon, 18 Nov 2024 16:58:38 +0200 Subject: [PATCH] add dispatch to release ci --- .github/workflows/docker-build-tag.yaml | 29 ++++++------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/docker-build-tag.yaml b/.github/workflows/docker-build-tag.yaml index 3911acec..686c5653 100644 --- a/.github/workflows/docker-build-tag.yaml +++ b/.github/workflows/docker-build-tag.yaml @@ -62,25 +62,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: operator - GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }} - RELEASE_VERSION: ${{ steps.tag.outputs.tag }} \ No newline at end of file + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.CI_BOT_TOKEN }} + repository: kubeshop/helm-charts + event-type: release-testkube-operator-charts + client-payload: '{"RELEASE_VERSION": "${{ steps.tag.outputs.tag }}", "SERVICE": "operator"}'