Skip to content

Commit 806c8b3

Browse files
committed
update workflows
1 parent ab5e261 commit 806c8b3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/github-action.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,22 @@ jobs:
7171
cache-from: type=gha
7272
cache-to: type=gha,mode=max
7373
push: true
74-
provenance: false
74+
provenance: false # Disable image index metadata
7575

7676
redeploy_dev_service:
7777
name: Redeploy Dev Service
7878
needs: docker_build_and_push
7979
runs-on: ubuntu-latest
8080
steps:
8181
- name: Redeploy Dev Service
82-
run: curl -X POST ${{ secrets.PORTAINER_DEV_SERVICE_WEBHOOK }}
82+
run: |
83+
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST ${{ secrets.PORTAINER_DEV_SERVICE_WEBHOOK }})
84+
if [ "$RESPONSE" -ne 200 ]; then
85+
echo "❌ Deployment failed! HTTP Response: $RESPONSE"
86+
cat response.txt # 오류 메시지 출력 (필요 시)
87+
exit 1
88+
fi
89+
echo "✅ Deployment successful! HTTP Response: $RESPONSE"
8390
8491
deploy_health_check:
8592
name: Check Application Status

0 commit comments

Comments
 (0)