Skip to content

Commit ccf173d

Browse files
author
Mikhail Khomenko
committed
Trigger deploy to stage GKE
1 parent 95b2849 commit ccf173d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/trigger-deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Trigger ZPM deployment
2+
3+
on:
4+
push:
5+
branches:
6+
# - master
7+
- stage
8+
# release:
9+
# types:
10+
# - created
11+
12+
jobs:
13+
trigger-zpm-deployment:
14+
name: Trigger zpm-registry-deployment via REST API
15+
runs-on: ubuntu-18.04
16+
17+
steps:
18+
- name: REST POST call
19+
run: |-
20+
curl -X POST https://api.github.com/repos/intersystems-community/zpm-registry-deployment/dispatches \
21+
-H 'Accept: application/vnd.github.everest-preview+json' \
22+
--user ${{ secrets.PAT_USERNAME }}:${{ secrets.PAT }} \
23+
--data "{\"event_type\": \"${{ github.event_name }}\", \"client_payload\": { \"zpm_ref_orig\": \"${GITHUB_REF##*/}\", \"zpm_commit_sha_orig\": \"$GITHUB_SHA\" }}"
24+

0 commit comments

Comments
 (0)