Skip to content

Commit

Permalink
빌드 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeniuus committed Mar 6, 2024
1 parent 4125fca commit 9e08d48
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/dev-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- ci-cd-pipeline
workflow_dispatch: # for manual trigger

permissions:
Expand All @@ -29,11 +30,11 @@ jobs:
- name: Build and Push Image
run: ./docker-push.sh dev

- name: Notify CI 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] Admin Frontend CI failed. <!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v
# - name: Notify CI 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] Admin Frontend CI failed. <!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v

cd:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,11 +69,11 @@ jobs:
run: |
kubectl rollout restart deploy/scc-admin-frontend -n dev
- name: Notify CD 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-admin-frontend deployment failed. <!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v
# - name: Notify CD 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-admin-frontend deployment failed. <!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v

- name: Notify CD success to slack
if: success()
Expand Down

0 comments on commit 9e08d48

Please sign in to comment.