Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Feb 1, 2025
1 parent be9d29a commit 7390528
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Redeploy Dev Service
run: curl -X POST ${{ secrets.PORTAINER_DEV_SERVICE_WEBHOOK }}
run: |
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST ${{ secrets.PORTAINER_DEV_SERVICE_WEBHOOK }})
if [ "$RESPONSE" -ne 200 ]; then
echo "❌ Deployment failed! HTTP Response: $RESPONSE"
cat response.txt # 오류 메시지 출력 (필요 시)
exit 1
fi
echo "✅ Deployment successful! HTTP Response: $RESPONSE"
deploy_health_check:
name: Check Application Status
needs: docker_build_and_push
needs: redeploy_dev_service
runs-on: ubuntu-latest
steps:
- name: Check the deployed service URL
Expand Down

0 comments on commit 7390528

Please sign in to comment.