Skip to content

Commit

Permalink
Add event to trigger demo env deployment (#5514)
Browse files Browse the repository at this point in the history
* Add event to trigger demo env deployment

Signed-off-by: khanhtc1202 <[email protected]>

* Update workflow

Signed-off-by: khanhtc1202 <[email protected]>

---------

Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 authored Jan 24, 2025
1 parent 45d8a20 commit fcc31a3
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/publish_image_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,26 @@ jobs:
helm push .artifacts/piped-${{ env.PIPECD_VERSION }}.tgz oci://${{ env.GHCR }}/pipe-cd/chart
helm push .artifacts/helloworld-${{ env.PIPECD_VERSION }}.tgz oci://${{ env.GHCR }}/pipe-cd/chart
# Notify PipeCD to trigger deployment via EventWatcher.
trigger-event-watcher:
runs-on: ubuntu-24.04
needs: artifacts
steps:
# Notify PipeCD to trigger update dev environment via EventWatcher.
- uses: pipe-cd/[email protected]
with:
api-address: ${{ secrets.PIPECD_API_ADDRESS }}
api-key: ${{ secrets.PIPECD_API_KEY }}
event-name: helm-release
labels: helmRepo=pipecd,env=dev
data: ${{ env.PIPECD_VERSION }}
contexts: Source-Commit-URL=https://github.com/pipe-cd/pipecd/commit/${{ github.sha }}
# Notify PipeCD to trigger update demo environment via EventWatcher.
- uses: pipe-cd/[email protected]
with:
api-address: ${{ secrets.PIPECD_API_ADDRESS }}
api-key: ${{ secrets.PIPECD_API_KEY }}
event-name: helm-release
labels: helmRepo=pipecd
labels: helmRepo=pipecd,env=demo
data: ${{ env.PIPECD_VERSION }}
contexts: Source-Commit-URL=https://github.com/pipe-cd/pipecd/commit/${{ github.sha }}

Expand Down

0 comments on commit fcc31a3

Please sign in to comment.