Skip to content

Commit 08d609d

Browse files
committed
배포 성공 or 실패 알림 수정
1 parent cfd8aa0 commit 08d609d

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,34 @@ jobs:
8989
if: success()
9090
run: |
9191
curl -X POST -H 'Content-type: application/json' \
92-
--data '{"text":"✅ *배포 성공!* 🎉\n브랜치: `${{ github.ref_name }}`"}' \
92+
--data '{
93+
"text": "✅ *배포 성공!* 🎉",
94+
"blocks": [
95+
{
96+
"type": "section",
97+
"text": {
98+
"type": "mrkdwn",
99+
"text": "*✅ 배포 성공했습니다!*\n\n*브랜치:* `${{ github.ref_name }}`\n<http://3.39.158.229:8080/actuator/health|🔗 배포된 서비스 상태 보기>"
100+
}
101+
}
102+
]
103+
}' \
93104
${{ secrets.SLACK_WEBHOOK_URL }}
94105
95106
- name: Notify Slack - 배포 실패
96107
if: failure()
97108
run: |
98109
curl -X POST -H 'Content-type: application/json' \
99-
--data '{"text":"❌ *배포 실패!* 🔥 확인이 필요합니다.\n브랜치: `${{ github.ref_name }}`"}' \
110+
--data '{
111+
"text": "❌ *배포 실패!* 🔥",
112+
"blocks": [
113+
{
114+
"type": "section",
115+
"text": {
116+
"type": "mrkdwn",
117+
"text": "*❌ 배포 실패했습니다!*\n\n*브랜치:* `${{ github.ref_name }}`\n<http://3.39.158.229:8080/actuator/health|🔗 배포 상태 확인 (수동 접속 필요)>"
118+
}
119+
}
120+
]
121+
}' \
100122
${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)