Merge pull request #559 from Smana/chore_zitadel_roles #2069
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: CI | |
on: | |
pull_request: | |
push: | |
branches: ["main"] | |
jobs: | |
pre-commit: | |
name: Pre-commit checks 🛃 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Write required vault files | |
run: | | |
mkdir -p terraform/vault/cluster/.tls | |
echo 'keep' > terraform/vault/cluster/.tls/vault.pem | |
echo 'keep' > terraform/vault/cluster/.tls/vault-key.pem | |
echo 'keep' > terraform/vault/cluster/.tls/ca-chain.pem | |
- name: Validate Terraform Opentofu configuration | |
uses: dagger/dagger-for-github@v7 | |
with: | |
version: "latest" | |
verb: call | |
module: github.com/Smana/daggerverse/pre-commit-tf@pre-commit-tf/v0.1.1 | |
args: run --dir "." --tf-binary="tofu" | |
kubernetes-validation: | |
name: Kubernetes validation ☸ | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Validate Flux clusters manifests | |
uses: dagger/dagger-for-github@v7 | |
with: | |
version: "latest" | |
verb: call | |
module: github.com/Smana/daggerverse/kubeconform@kubeconform/v0.1.0 | |
args: validate --manifests "./clusters" --catalog | |
- name: Validate Kubernetes manifests (Kustomize directories) | |
uses: dagger/dagger-for-github@v7 | |
with: | |
version: "latest" | |
verb: call | |
module: github.com/Smana/daggerverse/kubeconform@kubeconform/v0.1.0 | |
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/experimental,https://raw.githubusercontent.com/grafana/grafana-operator/master/config/crd/bases/grafana.integreatly.org_grafanadashboards.yaml # These are CRDs that are not supported yet by the datree catalog |