My homelab
https://wieman.cloud
- HCL 35.8%
- KCL 34.9%
- Go 16.7%
- Shell 9.9%
- CSS 1.4%
- Other 1.3%
Co-authored-by: wiemanboy <wiemanboy@gmail.com> Co-authored-by: WiemanBot <bot@wieman.cloud> Reviewed-on: #24 |
||
|---|---|---|
| .forgejo/workflows | ||
| .github/workflows | ||
| .vscode | ||
| applications | ||
| helper | ||
| infrastructure | ||
| pipeline | ||
| products/tofudeployer | ||
| wiecloud/chart | ||
| .gitignore | ||
| README.md | ||
| renovate.json | ||
WieCloud
Structure
Global
helper/: Helper scripts for local useinfrastructure/: Helm charts for infrastructure, used to keep applications runningapplications/: Helm charts for applications, used by end userspipelines/: CI/CD pipeline scriptsproducts/: Helm charts and images for products, can be used by different projectswiecloud/: Deployment chart looked at by ArgoCD to deploy the whole stack
Chart
Charts are structured as default Helm charts:
chart
├── Chart.yaml
├── templates
└── values.yaml
the path must be <project>/<chart_name>/chart/
Image
Images are usually placed next to the chart it is used for, structured as follows:
├── chart
└── <image_name>
└── image
├── Dockerfile
└── Image.yaml
Image.yaml is used to define metadata about the image structured the same as a Chart.yaml, and must contain at least the following:
name: <image_name>
version: 0.0.0
Pull Requests
Pull requests should be created as a draft, this will make the pipelines build a dev image. Once the code is ready for review, the draft status can be removed and a production image will be built.
Pipelines
There are three main pipelines used in the project:
build image: Builds and pushes an image to an image registrybuild chart: Packages and pushes a Helm chart to a Helm chart registryversion: Updates the version of all changed charts abd images inwiecloud/chart/values.yamlfor deployment
Helper scripts
The projects includes some helper scripts to be run locally:
./helper/helm/create_helm_build_workflow.sh: creates a build workflow file for a defined chart using./helper/helm/helm_build_<chart_name>.yaml
./helper/helm/create_helm_build_workflow.sh --path <project_name>/<application_name>/chart --registry harbor.wieman.cloud --repository <project_name>
./helper/image/create_image_build_workflow.sh: creates a build workflow file for a defined chart using./helper/image/image_build_<image_name>.yaml
./helper/image/create_image_build_workflow.sh --path <path_to_image>/image --registry harbor.wieman.cloud --repository <project_name>
./helper/version/bump_versions.sh: bumps the versions of all charts and images by one patch version, used when pipelines are edited