Skip to content

Commit 564593a

Browse files
committed
feat(ci): notify slack channel on deployment
1 parent e46c664 commit 564593a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

cloudbuild-webapp.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ steps:
3636
- '${_REGION}-docker.pkg.dev/${PROJECT_ID}/edvise-api/webapp:$COMMIT_SHA'
3737
- '--region'
3838
- '${_REGION}'
39+
- name: curlimages/curl
40+
args:
41+
- '-X'
42+
- POST
43+
- '-H'
44+
- 'Content-Type: application/json'
45+
- '-f'
46+
- '-d'
47+
- >-
48+
{"text":"🚀 *$REPO_NAME* deployed · `$BRANCH_NAME` · $TRIGGER_NAME · $BUILD_ID"}
49+
- >-
50+
https://hooks.slack.com/triggers/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
51+
id: notify-slack
3952
timeout: 600s
4053
options:
4154
logging: CLOUD_LOGGING_ONLY

0 commit comments

Comments
 (0)