diff --git a/.github/workflows/healthcheck-dev-batch.yml b/.github/workflows/healthcheck-dev-batch.yml index 92f5d33..d26acf7 100644 --- a/.github/workflows/healthcheck-dev-batch.yml +++ b/.github/workflows/healthcheck-dev-batch.yml @@ -26,7 +26,7 @@ jobs: { attachments: [{ color: 'danger', - text: `${process.env.AS_WORKFLOW}\n사장님 API 서버 Health Check가 실패하였습니다` + text: `${process.env.AS_WORKFLOW}\n배치 API Health Check가 실패하였습니다` }] } env: diff --git a/.github/workflows/healthcheck-prod-batch.yml b/.github/workflows/healthcheck-prod-batch.yml new file mode 100644 index 0000000..bcb04da --- /dev/null +++ b/.github/workflows/healthcheck-prod-batch.yml @@ -0,0 +1,33 @@ +name: "[운영] 헬스체크 - Batch" + +on: + schedule: + - cron: "*/5 * * * *" + workflow_dispatch: + +jobs: + healthcheck: + runs-on: ubuntu-latest + steps: + - name: Batch Health Check + uses: jtalk/url-health-check-action@v3 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/ping + 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배치 API Health Check가 실패하였습니다` + }] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEV }} diff --git a/.github/workflows/job-trigger-dev-cleaner-target-user-stores-dry-run.yml b/.github/workflows/job-trigger-dev-cleaner-target-user-stores-dry-run.yml new file mode 100644 index 0000000..ce91868 --- /dev/null +++ b/.github/workflows/job-trigger-dev-cleaner-target-user-stores-dry-run.yml @@ -0,0 +1,18 @@ +name: "[개발] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치 (dry-run)" + +on: + schedule: + - cron: "30 11 */3 * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/userStoreAutoCleanTargetFindJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-dev-cleaner-target-user-stores.yml b/.github/workflows/job-trigger-dev-cleaner-target-user-stores.yml new file mode 100644 index 0000000..5f50f88 --- /dev/null +++ b/.github/workflows/job-trigger-dev-cleaner-target-user-stores.yml @@ -0,0 +1,16 @@ +name: "[개발] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치" + +on: + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/userStoreAutoCleanerJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-dev-correct-favorite-count.yml b/.github/workflows/job-trigger-dev-correct-favorite-count.yml new file mode 100644 index 0000000..c11679f --- /dev/null +++ b/.github/workflows/job-trigger-dev-correct-favorite-count.yml @@ -0,0 +1,16 @@ +name: "[개발] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 보정" + +on: + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/correctFavoriteStoresCountJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-dev-correct-user-store-reviews-average.yml b/.github/workflows/job-trigger-dev-correct-user-store-reviews-average.yml new file mode 100644 index 0000000..995c1e9 --- /dev/null +++ b/.github/workflows/job-trigger-dev-correct-user-store-reviews-average.yml @@ -0,0 +1,16 @@ +name: "[개발] 잡 트리거 - 유저 가게 평균 리뷰 점수 보정 배치" + +on: + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/correctUserStoreAverageRatingJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-dev-push-boss-open-store.yml b/.github/workflows/job-trigger-dev-push-boss-open-store.yml index da6d39b..c28db42 100644 --- a/.github/workflows/job-trigger-dev-push-boss-open-store.yml +++ b/.github/workflows/job-trigger-dev-push-boss-open-store.yml @@ -2,14 +2,14 @@ name: "[개발] 잡 트리거 - 사장님 서비스 장기 영업 가게 푸시 on: schedule: - - cron: "0 0,12 * * *" + - cron: "0 12 * * *" workflow_dispatch: jobs: trigger: runs-on: ubuntu-latest steps: - - name: 사장님 서비스 장기 영업 가게 푸시 발송 트리거 + - name: trigger uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/bossOpenStorePushJob diff --git a/.github/workflows/job-trigger-dev-statistics-boss-service.yml b/.github/workflows/job-trigger-dev-statistics-boss-service.yml index 3c1bb86..c5c617f 100644 --- a/.github/workflows/job-trigger-dev-statistics-boss-service.yml +++ b/.github/workflows/job-trigger-dev-statistics-boss-service.yml @@ -9,7 +9,7 @@ jobs: trigger: runs-on: ubuntu-latest steps: - - name: 사장님 서비스 일일 통계 배치 트리거 + - name: trigger uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/bossStatisticsJob diff --git a/.github/workflows/job-trigger-dev-statistics-user-service.yml b/.github/workflows/job-trigger-dev-statistics-user-service.yml index da83c29..acf75e8 100644 --- a/.github/workflows/job-trigger-dev-statistics-user-service.yml +++ b/.github/workflows/job-trigger-dev-statistics-user-service.yml @@ -9,7 +9,7 @@ jobs: trigger: runs-on: ubuntu-latest steps: - - name: 유저 서비스 일일 통계 배치 트리거 + - name: trigger uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/dailyStaticsJob diff --git a/.github/workflows/job-trigger-dev-validate-boss-store-feedback-count.yml b/.github/workflows/job-trigger-dev-validate-boss-store-feedback-count.yml index d1cc058..a6e240e 100644 --- a/.github/workflows/job-trigger-dev-validate-boss-store-feedback-count.yml +++ b/.github/workflows/job-trigger-dev-validate-boss-store-feedback-count.yml @@ -2,14 +2,14 @@ name: "[개발] 잡 트리거 - 사장님 가게 피드백 카운트 갯수 검 on: schedule: - - cron: "0 11 */3 * *" + - cron: "10 11 */3 * *" workflow_dispatch: jobs: trigger: runs-on: ubuntu-latest steps: - - name: 사장님 가게 피드백 카운트 갯수 검증 배치 트리거 + - name: trigger uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/validateBossStoreFeedbackCountJob diff --git a/.github/workflows/job-trigger-dev-validate-favorite-count.yml b/.github/workflows/job-trigger-dev-validate-favorite-count.yml index 7f24e57..0a7d20a 100644 --- a/.github/workflows/job-trigger-dev-validate-favorite-count.yml +++ b/.github/workflows/job-trigger-dev-validate-favorite-count.yml @@ -2,14 +2,14 @@ name: "[개발] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 검증 배 on: schedule: - - cron: "0 11 */3 * *" + - cron: "20 11 */3 * *" workflow_dispatch: jobs: trigger: runs-on: ubuntu-latest steps: - - name: 즐겨찾기 가게 카운트 갯수 검증 배치 트리거 + - name: trigger uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/validationFavoriteStoresCountJob diff --git a/.github/workflows/job-trigger-dev-validate-user-store-reviews-average.yml b/.github/workflows/job-trigger-dev-validate-user-store-reviews-average.yml index 0e9c2ad..baa3266 100644 --- a/.github/workflows/job-trigger-dev-validate-user-store-reviews-average.yml +++ b/.github/workflows/job-trigger-dev-validate-user-store-reviews-average.yml @@ -9,7 +9,7 @@ jobs: trigger: runs-on: ubuntu-latest steps: - - name: 유저 가게 평균 리뷰 점수 배치 트리거 + - name: trigger uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/validateUserStoreAverageRatingJob diff --git a/.github/workflows/job-trigger-prod-cleaner-target-user-stores-dry-run.yml b/.github/workflows/job-trigger-prod-cleaner-target-user-stores-dry-run.yml new file mode 100644 index 0000000..a6309eb --- /dev/null +++ b/.github/workflows/job-trigger-prod-cleaner-target-user-stores-dry-run.yml @@ -0,0 +1,18 @@ +name: "[운영] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치 (dry-run)" + +on: + schedule: + - cron: "30 11 */3 * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/userStoreAutoCleanTargetFindJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_PROD }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-cleaner-target-user-stores.yml b/.github/workflows/job-trigger-prod-cleaner-target-user-stores.yml new file mode 100644 index 0000000..42cf79f --- /dev/null +++ b/.github/workflows/job-trigger-prod-cleaner-target-user-stores.yml @@ -0,0 +1,16 @@ +name: "[운영] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치" + +on: + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/userStoreAutoCleanerJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_PROD }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-correct-favorite-count.yml b/.github/workflows/job-trigger-prod-correct-favorite-count.yml new file mode 100644 index 0000000..5426cc7 --- /dev/null +++ b/.github/workflows/job-trigger-prod-correct-favorite-count.yml @@ -0,0 +1,16 @@ +name: "[운영] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 보정" + +on: + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/correctFavoriteStoresCountJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_PROD }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-correct-user-store-reviews-average.yml b/.github/workflows/job-trigger-prod-correct-user-store-reviews-average.yml new file mode 100644 index 0000000..1a63e88 --- /dev/null +++ b/.github/workflows/job-trigger-prod-correct-user-store-reviews-average.yml @@ -0,0 +1,16 @@ +name: "[운영] 잡 트리거 - 유저 가게 평균 리뷰 점수 보정 배치" + +on: + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/correctUserStoreAverageRatingJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_PROD }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-push-boss-open-store.yml b/.github/workflows/job-trigger-prod-push-boss-open-store.yml new file mode 100644 index 0000000..b5f318f --- /dev/null +++ b/.github/workflows/job-trigger-prod-push-boss-open-store.yml @@ -0,0 +1,18 @@ +name: "[개발] 잡 트리거 - 사장님 서비스 장기 영업 가게 푸시 발송" + +on: + schedule: + - cron: "0 12 * * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/bossOpenStorePushJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-statistics-boss-service.yml b/.github/workflows/job-trigger-prod-statistics-boss-service.yml new file mode 100644 index 0000000..bbd0914 --- /dev/null +++ b/.github/workflows/job-trigger-prod-statistics-boss-service.yml @@ -0,0 +1,18 @@ +name: "[운영] 잡 트리거 - 사장님 서비스 일일 통계 배치" + +on: + schedule: + - cron: "2 15 * * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/bossStatisticsJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-statistics-user-service.yml b/.github/workflows/job-trigger-prod-statistics-user-service.yml new file mode 100644 index 0000000..2f9eb97 --- /dev/null +++ b/.github/workflows/job-trigger-prod-statistics-user-service.yml @@ -0,0 +1,18 @@ +name: "[운영] 잡 트리거 - 유저 서비스 일일 통계 배치" + +on: + schedule: + - cron: "0 15 * * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/dailyStaticsJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-validate-boss-store-feedback-count.yml b/.github/workflows/job-trigger-prod-validate-boss-store-feedback-count.yml new file mode 100644 index 0000000..07c107b --- /dev/null +++ b/.github/workflows/job-trigger-prod-validate-boss-store-feedback-count.yml @@ -0,0 +1,18 @@ +name: "[운영] 잡 트리거 - 사장님 가게 피드백 카운트 갯수 검증 배치" + +on: + schedule: + - cron: "10 11 */3 * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/validateBossStoreFeedbackCountJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-validate-favorite-count.yml b/.github/workflows/job-trigger-prod-validate-favorite-count.yml new file mode 100644 index 0000000..0e6b480 --- /dev/null +++ b/.github/workflows/job-trigger-prod-validate-favorite-count.yml @@ -0,0 +1,18 @@ +name: "[운영] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 검증 배치" + +on: + schedule: + - cron: "20 11 */3 * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/validationFavoriteStoresCountJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json diff --git a/.github/workflows/job-trigger-prod-validate-user-store-reviews-average.yml b/.github/workflows/job-trigger-prod-validate-user-store-reviews-average.yml new file mode 100644 index 0000000..7ff06cc --- /dev/null +++ b/.github/workflows/job-trigger-prod-validate-user-store-reviews-average.yml @@ -0,0 +1,18 @@ +name: "[운영] 잡 트리거 - 유저 가게 평균 리뷰 점수 검증 배치" + +on: + schedule: + - cron: "0 11 */3 * *" + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: trigger + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/validateUserStoreAverageRatingJob + method: POST + bearerToken: ${{ secrets.BATCH_TOKEN_DEV }} + contentType: application/json