33 lines
854 B
YAML
33 lines
854 B
YAML
name: Validate
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- main
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/actions/extract-namespace-from-repo-name@v0
|
|
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
|
|
uses: azure/k8s-lint@v3
|
|
with:
|
|
namespace: ${{ steps.namespace.outputs.namespace }}
|
|
lintType: dryrun
|
|
manifests: "k8s/"
|
|
- name: Validate Helm
|
|
uses: helmfile/helmfile-action@v2.0.5
|
|
with:
|
|
helmfile-args: diff
|