-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (42 loc) · 1.64 KB
/
kustomize-lint.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
35
36
37
38
39
40
41
42
43
name: Kustomize Build Check
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
kustomize-lint:
runs-on: ubuntu-latest
env:
KUSTOMIZE_VERSION: 4.5.7
steps:
- name: Install Kustomize
# yamllint disable rule:line-length
run: |
sudo curl -L -o /usr/bin/kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64
sudo chmod +x /usr/bin/kustomize
- name: Checkout cnf-features-deploy repo
uses: actions/checkout@v4
with:
repository: openshift-kni/cnf-features-deploy
path: cnf-features-deploy
ref: release-4.13
- name: Install siteconfig plugin
run: |
cd /home/runner/work/vse-carslab-hub/vse-carslab-hub/cnf-features-deploy/ztp/siteconfig-generator-kustomize-plugin
make build KUSTOMIZE_DIR=/home/runner/kustomize SITECONFIG_KUSTOMIZE_DIR=/home/runner/kustomize/plugin/ran.openshift.io/v1/siteconfig
- name: Install policies plugin
run: |
cd /home/runner/work/vse-carslab-hub/vse-carslab-hub/cnf-features-deploy/ztp/policygenerator-kustomize-plugin
make build KUSTOMIZE_DIR=/home/runner/kustomize POLICYGEN_KUSTOMIZE_DIR=/home/runner/kustomize/plugin/ran.openshift.io/v1/policygentemplate
- name: Code Checkout
uses: actions/checkout@v4
with:
path: main
- name: Validate Manifests
run: |
cd /home/runner/work/vse-carslab-hub/vse-carslab-hub/main/hack
./validate_manifests.sh
# yamllint enable rule:line-length