Files
k_deploy_workflows/.gitea/workflows/ci.yaml
Renovate Bot 6086bb55aa chore(deps): update helmfile/helmfile-action action to v2.1.0 (#6)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [helmfile/helmfile-action](https://github.com/helmfile/helmfile-action) | action | minor | `v2.0.5` -> `v2.1.0` |

---

### Release Notes

<details>
<summary>helmfile/helmfile-action (helmfile/helmfile-action)</summary>

### [`v2.1.0`](https://github.com/helmfile/helmfile-action/releases/tag/v2.1.0)

[Compare Source](https://github.com/helmfile/helmfile-action/compare/v2.0.5...v2.1.0)

#### What's Changed

- build(deps-dev): bump typescript from 5.8.3 to 5.9.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;548](https://github.com/helmfile/helmfile-action/pull/548)
- build(deps-dev): bump [@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.39.1 to 8.40.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;551](https://github.com/helmfile/helmfile-action/pull/551)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.2.1 to 24.3.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;549](https://github.com/helmfile/helmfile-action/pull/549)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.39.1 to 8.40.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;550](https://github.com/helmfile/helmfile-action/pull/550)
- build(deps-dev): bump jest from 30.0.5 to 30.1.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;554](https://github.com/helmfile/helmfile-action/pull/554)
- build(deps-dev): bump [@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.40.0 to 8.41.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;553](https://github.com/helmfile/helmfile-action/pull/553)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.40.0 to 8.41.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;552](https://github.com/helmfile/helmfile-action/pull/552)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.3.0 to 24.3.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;559](https://github.com/helmfile/helmfile-action/pull/559)
- build(deps-dev): bump jest from 30.1.1 to 30.1.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;557](https://github.com/helmfile/helmfile-action/pull/557)
- build(deps-dev): bump [@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.41.0 to 8.42.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;558](https://github.com/helmfile/helmfile-action/pull/558)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.41.0 to 8.42.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;556](https://github.com/helmfile/helmfile-action/pull/556)
- docs: Fix example version of helmfile-action in README.md by [@&#8203;Xiroo](https://github.com/Xiroo) in [#&#8203;560](https://github.com/helmfile/helmfile-action/pull/560)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.42.0 to 8.43.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;562](https://github.com/helmfile/helmfile-action/pull/562)
- build(deps-dev): bump ts-jest from 29.4.1 to 29.4.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;571](https://github.com/helmfile/helmfile-action/pull/571)
- build(deps-dev): bump [@&#8203;vercel/ncc](https://github.com/vercel/ncc) from 0.38.3 to 0.38.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;570](https://github.com/helmfile/helmfile-action/pull/570)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.3.1 to 24.5.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;569](https://github.com/helmfile/helmfile-action/pull/569)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.43.0 to 8.44.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;574](https://github.com/helmfile/helmfile-action/pull/574)
- build(deps-dev): bump ts-jest from 29.4.3 to 29.4.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;572](https://github.com/helmfile/helmfile-action/pull/572)
- build(deps-dev): bump jest from 30.1.3 to 30.2.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;575](https://github.com/helmfile/helmfile-action/pull/575)
- build(deps-dev): bump typescript from 5.9.2 to 5.9.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;579](https://github.com/helmfile/helmfile-action/pull/579)
- build(deps-dev): bump ts-jest from 29.4.4 to 29.4.5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;590](https://github.com/helmfile/helmfile-action/pull/590)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.5.2 to 24.8.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;589](https://github.com/helmfile/helmfile-action/pull/589)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.44.1 to 8.46.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;588](https://github.com/helmfile/helmfile-action/pull/588)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.8.1 to 24.9.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;593](https://github.com/helmfile/helmfile-action/pull/593)
- build(deps-dev): bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.46.1 to 8.46.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;592](https://github.com/helmfile/helmfile-action/pull/592)
- build(deps-dev): bump [@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.46.2 to 8.46.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;602](https://github.com/helmfile/helmfile-action/pull/602)
- build(deps-dev): bump eslint-plugin-jest from 29.0.1 to 29.1.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;600](https://github.com/helmfile/helmfile-action/pull/600)
- build(deps): bump [@&#8203;actions/http-client](https://github.com/actions/http-client) from 2.2.3 to 3.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;597](https://github.com/helmfile/helmfile-action/pull/597)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.9.1 to 24.10.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;596](https://github.com/helmfile/helmfile-action/pull/596)
- add --verify=false for plugin install by [@&#8203;yxxhero](https://github.com/yxxhero) in [#&#8203;610](https://github.com/helmfile/helmfile-action/pull/610)
- build(deps-dev): bump eslint-plugin-jest from 29.1.0 to 29.2.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;611](https://github.com/helmfile/helmfile-action/pull/611)
- build(deps-dev): bump [@&#8203;types/node](https://github.com/types/node) from 24.10.0 to 24.10.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;605](https://github.com/helmfile/helmfile-action/pull/605)
- build(deps): bump actions/checkout from 5 to 6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;608](https://github.com/helmfile/helmfile-action/pull/608)

#### New Contributors

- [@&#8203;Xiroo](https://github.com/Xiroo) made their first contribution in [#&#8203;560](https://github.com/helmfile/helmfile-action/pull/560)

**Full Changelog**: <https://github.com/helmfile/helmfile-action/compare/v2...v2.1.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMC41IiwidXBkYXRlZEluVmVyIjoiNDIuMTAuNSIsInRhcmdldEJyYW5jaCI6InYwIiwibGFiZWxzIjpbXX0=-->

Reviewed-on: #6
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
2025-12-04 17:12:29 +01:00

124 lines
4.4 KiB
YAML

name: CI
on:
workflow_call:
inputs:
k8s_dir:
description: "Path to Kubernetes manifests directory"
required: false
default: "k8s/"
type: string
helmfile_path:
description: "Path to helmfile.yaml"
required: false
default: "helmfile.yaml"
type: string
skip_helm_validation:
description: "Skip Helm validation even if helmfile.yaml exists"
required: false
default: false
type: boolean
jobs:
detect-service-type:
runs-on: ubuntu-latest
outputs:
has_helmfile: ${{ steps.check-helmfile.outputs.exists }}
has_k8s: ${{ steps.check-k8s.outputs.exists }}
steps:
- uses: actions/checkout@v5
- name: Check if helmfile.yaml exists
id: check-helmfile
run: |
if [ -f "${{ inputs.helmfile_path }}" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
echo "Found helmfile.yaml at ${{ inputs.helmfile_path }}"
else
echo "exists=false" >> $GITHUB_OUTPUT
echo "No helmfile.yaml found at ${{ inputs.helmfile_path }}"
fi
- name: Check if k8s directory exists
id: check-k8s
run: |
if [ -d "${{ inputs.k8s_dir }}" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
echo "Found k8s directory at ${{ inputs.k8s_dir }}"
else
echo "exists=false" >> $GITHUB_OUTPUT
echo "No k8s directory found at ${{ inputs.k8s_dir }}"
fi
validate-k8s:
runs-on: ubuntu-latest
needs: detect-service-type
if: needs.detect-service-type.outputs.has_k8s == 'true'
steps:
- uses: actions/checkout@v5
- uses: ./.gitea/actions/extract-namespace-from-repo-name
id: namespace
with:
repo: ${{ github.repository }}
- uses: azure/setup-kubectl@v4
- uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Validate k8s manifests
uses: azure/k8s-lint@v3
with:
namespace: ${{ steps.namespace.outputs.namespace }}
lintType: dryrun
manifests: "${{ inputs.k8s_dir }}"
validate-helm:
runs-on: ubuntu-latest
needs: detect-service-type
if: |
needs.detect-service-type.outputs.has_helmfile == 'true' &&
needs.detect-service-type.outputs.has_k8s == 'true' &&
inputs.skip_helm_validation != 'true'
steps:
- uses: actions/checkout@v5
- uses: ./.gitea/actions/extract-namespace-from-repo-name
id: namespace
with:
repo: ${{ github.repository }}
- uses: azure/setup-kubectl@v4
- uses: azure/setup-helm@v4
- uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Validate Helm
uses: helmfile/helmfile-action@v2.1.0
with:
helmfile-args: diff
# Summary job that always runs to show what was validated
ci-summary:
runs-on: ubuntu-latest
needs: [detect-service-type, validate-k8s, validate-helm]
if: always()
steps:
- name: CI Summary
run: |
echo "## CI Validation Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ "${{ needs.detect-service-type.outputs.has_k8s }}" == "true" ]; then
echo "✅ **Kubernetes validation**: Completed" >> $GITHUB_STEP_SUMMARY
else
echo "❌ **Kubernetes validation**: Skipped (no k8s/ directory found)" >> $GITHUB_STEP_SUMMARY
fi
if [ "${{ needs.detect-service-type.outputs.has_helmfile }}" == "true" ] && [ "${{ inputs.skip_helm_validation }}" != "true" ]; then
echo "✅ **Helm validation**: Completed" >> $GITHUB_STEP_SUMMARY
elif [ "${{ needs.detect-service-type.outputs.has_helmfile }}" == "true" ] && [ "${{ inputs.skip_helm_validation }}" == "true" ]; then
echo "⏭️ **Helm validation**: Skipped (manually disabled)" >> $GITHUB_STEP_SUMMARY
else
echo "⏭️ **Helm validation**: Skipped (no helmfile.yaml found)" >> $GITHUB_STEP_SUMMARY
fi
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Service Type**: ${{ needs.detect-service-type.outputs.has_helmfile == 'true' && 'Helm + Kubernetes' || 'Kubernetes Only' }}" >> $GITHUB_STEP_SUMMARY