Skip to content

Commit

Permalink
[bugfix/#286] deploy discord webhook 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
whitem4rk committed May 30, 2024
1 parent ec19cba commit a495b5f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,20 @@ jobs:
docker build -t $IMAGE_NAME .
docker run -d --name $CONTAINER_NAME --network host -p 8082:8082 -e SPRING_CONFIG_IMPORT=configserver:http://localhost:8888 $IMAGE_NAME
echo "Deployment done"
echo "Deployment done"

- name: Notify Discord on Success
if: success()
run: |
curl -H "Content-Type: application/json" \
-d '{"content": "Production deployment completed successfully!"}' \
${{ secrets.DISCORD_WEBHOOK_URL }}
- name: Notify Discord on Failure
if: failure()
run: |
curl -H "Content-Type: application/json" \
-d '{"content": "Production deployment failed!"}' \
${{ secrets.DISCORD_WEBHOOK_URL }}
15 changes: 15 additions & 0 deletions .github/workflows/depoly-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,18 @@ jobs:
docker run -d --name $CONTAINER_NAME --network host -p 8080:8080 -e SPRING_CONFIG_IMPORT=configserver:http://localhost:8888 $IMAGE_NAME
echo "Deployment done"
- name: Notify Discord on Success
if: success()
run: |
curl -H "Content-Type: application/json" \
-d '{"content": "Production deployment completed successfully!"}' \
${{ secrets.DISCORD_WEBHOOK_URL }}
- name: Notify Discord on Failure
if: failure()
run: |
curl -H "Content-Type: application/json" \
-d '{"content": "Production deployment failed!"}' \
${{ secrets.DISCORD_WEBHOOK_URL }}

0 comments on commit a495b5f

Please sign in to comment.