895b3b3609d398e9851861c60b471fc5410a55ab
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [https://gitea.t000-n.de/t.behrendt/actions](https://gitea.t000-n.de/t.behrendt/actions) | action | patch | `0.2.4` → `0.2.8` | --- ### Release Notes <details> <summary>t.behrendt/actions (https://gitea.t000-n.de/t.behrendt/actions)</summary> ### [`v0.2.8`](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.7...0.2.8) [Compare Source](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.7...0.2.8) ### [`v0.2.7`](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.6...0.2.7) [Compare Source](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.6...0.2.7) ### [`v0.2.6`](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.5...0.2.6) [Compare Source](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.5...0.2.6) ### [`v0.2.5`](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.4...0.2.5) [Compare Source](https://gitea.t000-n.de/t.behrendt/actions/compare/0.2.4...0.2.5) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, 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 [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My4yMzMuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYWN0aW9uIiwiYXV0b21lcmdlIiwiZGVwcyJdfQ==--> Reviewed-on: #61 Reviewed-by: t.behrendt <2+t.behrendt@noreply.localhost> Co-authored-by: Renovate Bot <renovate@t00n.de> Co-committed-by: Renovate Bot <renovate@t00n.de>
Reusable CI/CD Workflows for k_ Services
This repository contains reusable CI and CD workflows that automatically detect Kubernetes service type (Kubernetes-only vs Helm + Kubernetes) and execute the relevant steps.
Features
- Reusable CI and CD: Separate reusable workflows for validation and deployment
- Automatic Detection: Detects whether
helmfile.yamlexists and whetherk8s/exists - Conditional Execution: Runs Helm steps only when applicable
- Flexible Inputs: Supports custom
k8s_dirandhelmfile_path
Usage
Basic CI Usage
Call the reusable CI workflow:
jobs:
ci:
uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/workflows/ci.yaml@main
secrets: inherit
Basic CD Usage
Call the reusable CD workflow:
jobs:
deploy:
uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/workflows/cd.yaml@main
secrets: inherit
Advanced Usage with Custom Paths and Flags
jobs:
ci:
uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/workflows/ci.yaml@main
with:
k8s_dir: "kubernetes/"
helmfile_path: "helm/helmfile.yaml"
skip_helm_validation: true
secrets: inherit
Inputs
CI (.gitea/workflows/ci.yaml)
| Parameter | Description | Default | Required |
|---|---|---|---|
k8s_dir |
Path to Kubernetes manifests directory | k8s/ |
No |
helmfile_path |
Path to helmfile.yaml | helmfile.yaml |
No |
skip_helm_validation |
Skip Helm validation even if helmfile exists | false |
No |
helmfile_env |
JSON object string passed as env to helmfile | {} |
No |
namespace |
Override the default namespace (extracted from repository name) | "" |
No |
CD (.gitea/workflows/cd.yaml)
| Parameter | Description | Default | Required |
|---|---|---|---|
k8s_dir |
Path to Kubernetes manifests directory | k8s/ |
No |
helmfile_path |
Path to helmfile.yaml | helmfile.yaml |
No |
skip_helm_deployment |
Skip Helm deployment even if helmfile exists | false |
No |
skip_shared_secrets_deployment |
Skip shared secrets deployment | false |
No |
helmfile_env |
JSON object string passed as env to helmfile | {} |
No |
namespace |
Override the default namespace (extracted from repository name) | "" |
No |
Directory Structure Requirements
Full example structure (Helm + Kubernetes):
your-service/
├── k8s/
│ ├── deployment.yaml
│ ├── service.yaml
│ └── ...
├── helmfile.yaml
└── .gitea/workflows/your-workflow.yaml
Description
Languages
Markdown
100%