Skip to content

Commit

Permalink
ci: add dispatch (#1025) (#1026)
Browse files Browse the repository at this point in the history
* add dispatch to CI workflow
  • Loading branch information
ypoplavs authored Mar 27, 2024
1 parent 41cab48 commit a73266f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-beta-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ jobs:
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CI_BOT_TOKEN }}
repository: kubeshop/helm-charts
event-type: trigger-workflow-dashboard-pre-release
client-payload: '{"image_tag_dashboard": "${{ steps.tag.outputs.tag }}"}'
repository: kubeshop/testkube-dashboard-chart
event-type: trigger-workflow-dashboard-chart
client-payload: '{"app_version": "${{ steps.tag.outputs.tag }}"}'
30 changes: 8 additions & 22 deletions .github/workflows/docker-build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,12 @@ jobs:
id: tag
uses: dawidd6/action-get-tag@v1
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:[email protected]/kubeshop/helm-charts
cd ./helm-charts
git config user.name "kubeshop-bot"
git config user.email "[email protected]"
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
strip_v: true

env:
SERVICE: dashboard
GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
RELEASE_VERSION: ${{ steps.tag.outputs.tag }}
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.CI_BOT_TOKEN }}
repository: kubeshop/testkube-dashboard-chart
event-type: trigger-workflow-dashboard-chart
client-payload: '{"app_version": "${{ steps.tag.outputs.tag }}"}'

0 comments on commit a73266f

Please sign in to comment.