feat(ci): add dagger yamllint and kubeconform tasks #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dagger | |
on: | |
push: | |
branches: ["*"] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# - name: Yaml lint | |
# uses: dagger/dagger-for-github@v5 | |
# with: | |
# version: "latest" | |
# verb: call | |
# module: github.com/tsirysndr/daggerverse/yamllint | |
# args: lint --src . | |
- name: Validate Flux clusters manifests | |
uses: dagger/dagger-for-github@v5 | |
with: | |
version: "latest" | |
verb: call | |
module: github.com/Smana/daggerverse/kubeconform@kubeconform/v0.0.4 | |
args: validate --manifests "./clusters" --catalog | |
- name: Validate Kubernetes manifests (Kustomize directories) | |
uses: dagger/dagger-for-github@v5 | |
with: | |
version: "latest" | |
verb: call | |
module: github.com/Smana/daggerverse/kubeconform@kubeconform/v0.0.4 | |
args: validate --manifests "." --kustomize --flux --env="cluster_name=foobar,region=eu-west-3,domain_name=example.com" --catalog --crds https://github.com/kubernetes-sigs/gateway-api/tree/main/config/crd |