Skip to content

Commit

Permalink
DEV CI/CD 실패 시 슬랙 발송하기 2트
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeniuus committed Aug 5, 2023
1 parent 1e3d33b commit d812f9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dev-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ jobs:
run: ./gradlew jib -Pversion=latest-rc

- name: Notify build failure to slack
if: ${{ failure() }}
run: |
CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] backend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] backend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" https://hooks.slack.com/services/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
frontend-ci:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -98,9 +99,10 @@ jobs:
run: ./docker-push.sh dev

- name: Notify build failure to slack
if: ${{ failure() }}
run: |
CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] frontend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] frontend CI failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" https://hooks.slack.com/services/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
cd:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -146,6 +148,7 @@ jobs:
kubectl rollout restart deploy/scc-admin-frontend -n dev
- name: Notify build failure to slack
if: ${{ failure() }}
run: |
CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] scc-server CD failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] scc-server CD failed. (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" https://hooks.slack.com/services/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

0 comments on commit d812f9d

Please sign in to comment.