Skip to content

Commit 9a93787

Browse files
committed
dev deployment workflow
1 parent dc29d19 commit 9a93787

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/cd.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
required: true
2020
ssh_key:
2121
required: true
22+
slack_webhook:
23+
required: true
2224

2325
jobs:
2426
deploy:
@@ -48,4 +50,4 @@ jobs:
4850
4951
curl -X POST -H 'Content-type: application/json' \
5052
--data '{"text":"New image deployed to ${{ inputs.SSH_HOST }}: `${{ inputs.image }}`"}' \
51-
https://hooks.slack.com/services/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
53+
${{ secrets.slack_webhook }}

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ jobs:
5555
ssh_key: ${{ secrets.SSH_KEY_PROD }}
5656
ts_oauth_client_id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
5757
ts_oauth_secret: ${{ secrets.TS_OAUTH_SECRET }}
58+
slack_webhook: ${{secrets.SLACK_NOTIFY_WEBHOOK }}
5859

0 commit comments

Comments
 (0)