Skip to content

Commit

Permalink
Feat: custom slack noti
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Feb 3, 2024
1 parent 695ee79 commit 95e968b
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/jib-build-depoly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,30 @@ jobs:
- name: 🐧 Grant execute permission for gradlew
run: chmod +x gradlew

- name: 🔔 Send Slack Message when deploy started
uses: 8398a7/action-slack@v3
with:
status: custom
custom_payload: |
{
"attachments": [
{
"color": "#36a64f",
"pretext": "대피로 백엔드 배포 시작!",
"fields": [
{
"title": "Author",
"value": "${{ github.actor }}",
"short": true
},
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

- name: 🔑 Login to Docker Hub
uses: docker/[email protected]
with:
Expand Down Expand Up @@ -97,7 +121,7 @@ jobs:
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo, message, commit, author, action, eventName, ref, workflow, pullRequest
fields: repo, message, commit, author, workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

0 comments on commit 95e968b

Please sign in to comment.