Skip to content

Commit 133423f

Browse files
authored
Create gitcgvn-portainer-webhook.yml
Signed-off-by: La Minh Phuc <72692627+pk9r@users.noreply.github.com>
1 parent aaa352d commit 133423f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger Gitcgvn Portainer Webhook
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Build and Push Docker Image on Release Tag"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
trigger-webhook:
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
12+
runs-on: ubuntu-latest
13+
environment: gitcgvn
14+
15+
steps:
16+
- name: Trigger Portainer webhook
17+
run: |
18+
echo "Triggering Portainer webhook..."
19+
curl -X POST ${{ secrets.PORTAINER_WEBHOOK_URL }}

0 commit comments

Comments
 (0)