Skip to content

Commit

Permalink
Make publish helm chart and create release squential
Browse files Browse the repository at this point in the history
Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
  • Loading branch information
helayoty committed Jan 10, 2025
1 parent dcc0b3b commit 66bf83d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: publish_helm_chart

on:
repository_dispatch:
types: [ create-release ]
types: [ publish-helm-chart ]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -36,3 +36,15 @@ jobs:
charts_dir: charts/kaito
target_dir: charts/kaito
linting: off

create-release:
runs-on: ubuntu-latest
needs: [ publish-helm ]
steps:
- name: 'Dispatch release tag to create a release'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: create-release
client-payload: '{"tag": "${{ github.event.client_payload.tag }}"}'

6 changes: 3 additions & 3 deletions .github/workflows/publish-workspace-mcr-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
VERSION: ${{ needs.get-tag.outputs.release-tag }}
REGISTRY: ${{ secrets.KAITO_MCR_REGISTRY }}/public/aks/kaito

create-release:
publish-helm-chart:
runs-on: ubuntu-latest
needs: [ build-publish-mcr-image ]
steps:
- name: 'Dispatch release tag'
- name: 'Dispatch release tag for helm chart'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: create-release
event-type: publish-helm-chart
client-payload: '{"tag": "${{ github.event.client_payload.tag }}"}'

0 comments on commit 66bf83d

Please sign in to comment.