generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 917 Bytes
/
kubeconform.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Kubeconform"
on:
pull_request:
branches: ["main"]
paths: ["kubernetes/**"]
env:
MAIN_CLUSTER_KUBERNETES_DIR: ./kubernetes/main
STORAGE_CLUSTER_KUBERNETES_DIR: ./kubernetes/storage
jobs:
kubeconform:
name: Kubeconform
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup Workflow Tools
run: brew install fluxcd/tap/flux kubeconform kustomize
- name: Run kubeconform for main cluster
shell: bash
run: bash ./scripts/kubeconform.sh ${{ env.MAIN_CLUSTER_KUBERNETES_DIR }}
- name: Run kubeconform for storage cluster
shell: bash
run: bash ./scripts/kubeconform.sh ${{ env.STORAGE_CLUSTER_KUBERNETES_DIR }}