Skip to content

Commit

Permalink
healthcheck uri 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seungho-kang committed Apr 16, 2023
1 parent 4580788 commit 3bc9915
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/healthcheck-dev-batchi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "[개발] 헬스체크 - Batch"

on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:

jobs:
healthcheck:
runs-on: ubuntu-latest
steps:
- name: 배치 Health Check
uses: jtalk/url-health-check-action@v3
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/health/readiness
max-attempts: 3
retry-delay: 1s

- name: action-slack
if: failure()
uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow
custom_payload: |
{
attachments: [{
color: 'danger',
text: `${process.env.AS_WORKFLOW}\n배치 서버 Health Check가 실패하였습니다`
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEV }}
33 changes: 33 additions & 0 deletions .github/workflows/healthcheck-prod-batch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "[운영] 헬스체크 - Batch"

on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:

jobs:
healthcheck:
runs-on: ubuntu-latest
steps:
- name: 배치 Health Check
uses: jtalk/url-health-check-action@v3
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/health/readiness
max-attempts: 3
retry-delay: 1s

- name: action-slack
if: failure()
uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow
custom_payload: |
{
attachments: [{
color: 'danger',
text: `${process.env.AS_WORKFLOW}\n배치 서버 Health Check가 실패하였습니다`
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_PROD }}

0 comments on commit 3bc9915

Please sign in to comment.