fa318eb32ffe917e410316ffbef46eddbde1c949
Release / Release (push) Successful in 26s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [https://gitea.t000-n.de/t.behrendt/k_deploy_actions](https://gitea.t000-n.de/t.behrendt/k_deploy_actions) | action | pinDigest | → `244a648` | --- ### Configuration 📅 **Schedule**: (UTC) - 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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](undefined) if that's undesired. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiI0My41LjQiLCJ1cGRhdGVkSW5WZXIiOiI0My4yMzMuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYWN0aW9uIiwiZGVwcyJdfQ==--> Reviewed-on: #52 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%