Files
k_deploy_workflows/.gitea/actions/deployment-summary/action.yaml
T
2026-04-29 18:36:38 +02:00

42 lines
1.6 KiB
YAML

name: "Deployment Summary"
description: "Writes deployment summary to GITHUB_STEP_SUMMARY"
inputs:
has_k8s:
description: "Whether Kubernetes manifests were detected"
required: true
has_helmfile:
description: "Whether helmfile.yaml was detected"
required: true
skip_helm_deployment:
description: "Whether Helm deployment is manually disabled"
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
echo "## Deployment Summary" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
if [ "${{ inputs.has_k8s }}" = "true" ]; then
echo "✅ **Kubernetes deployment**: Completed" >> "$GITHUB_STEP_SUMMARY"
else
echo "❌ **Kubernetes deployment**: Skipped (no k8s/ directory found)" >> "$GITHUB_STEP_SUMMARY"
fi
if [ "${{ inputs.has_helmfile }}" = "true" ] && [ "${{ inputs.skip_helm_deployment }}" != "true" ]; then
echo "✅ **Helm deployment**: Completed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ inputs.has_helmfile }}" = "true" ] && [ "${{ inputs.skip_helm_deployment }}" = "true" ]; then
echo "⏭️ **Helm deployment**: Skipped (manually disabled)" >> "$GITHUB_STEP_SUMMARY"
else
echo "⏭️ **Helm deployment**: Skipped (no helmfile.yaml found)" >> "$GITHUB_STEP_SUMMARY"
fi
echo "" >> "$GITHUB_STEP_SUMMARY"
if [ "${{ inputs.has_helmfile }}" = "true" ]; then
service_type="Helm + Kubernetes"
else
service_type="Kubernetes Only"
fi
echo "**Service Type**: ${service_type}" >> "$GITHUB_STEP_SUMMARY"