feat(oncall): first deployment #2111
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: 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 openbao files | |
run: | | |
mkdir -p opentofu/openbao/cluster/.tls | |
echo 'keep' > opentofu/openbao/cluster/.tls/openbao.pem | |
echo 'keep' > opentofu/openbao/cluster/.tls/openbao-key.pem | |
echo 'keep' > opentofu/openbao/cluster/.tls/ca-chain.pem | |
- name: Validate 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 |