-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 883 Bytes
/
validate.yml
File metadata and controls
37 lines (32 loc) · 883 Bytes
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
35
36
37
name: Validate Manifests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Kustomize
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: "5.4.2"
- name: Validate Infrastructure Manifests
run: |
for dir in infrastructure/overlays/*; do
if [ -d "$dir" ]; then
echo "Validating $dir..."
kustomize build "$dir" > /dev/null
fi
done
- name: Validate Service Manifests
run: |
for dir in services/*/overlays/*; do
if [ -d "$dir" ]; then
echo "Validating $dir..."
kustomize build "$dir" > /dev/null
fi
done