Skip to content

Commit

Permalink
fix: change so we get debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed Apr 15, 2024
1 parent 117798a commit b0d8f20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/end2end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,22 @@ jobs:

- name: Install py-kube-downscaler
run: |
set +e # Disable exit on error
helm upgrade -i py-kube-downscaler \
--atomic \
--timeout 600s \
--set image.tag=${{ steps.version.outputs.value }} \
./chart
if [ $? -ne 0 ]; then
RESULT=$? # Save exit code
set -e # Re-enable exit on error
if [ $RESULT -ne 0 ]; then
echo "Helm deployment failed, collecting logs..."
kubectl describe pods -l app.kubernetes.io/name=py-kube-downscaler
kubectl logs -l app.kubernetes.io/name=py-kube-downscaler --tail=50
exit 1
fi
- name: Verify Deployment
run: |
kubectl rollout status deployment/py-kube-downscaler --timeout=60s
Expand Down

0 comments on commit b0d8f20

Please sign in to comment.