File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v2
12- - name : install kubeval
12+ - name : install kubeconform
1313 run : |
14- curl -L https://github.com/instrumenta/kubeval /releases/latest/download/kubeval -linux-amd64.tar.gz | tar -zxf -
15- sudo mv kubeval /usr/local/bin
14+ curl -L https://github.com/yannh/kubeconform /releases/latest/download/kubeconform -linux-amd64.tar.gz | tar -zxf -
15+ sudo mv kubeconform /usr/local/bin
1616 - name : check all yaml
1717 run : |
18- comm -3 <(find . | grep yaml$ | sort) <(cat .kubeval -ignore | sort) | xargs -n1 kubeval --strict | tee -a apply.txt
18+ comm -3 <(find . | grep yaml$ | sort) <(cat .kubeconform -ignore | sort) | xargs -n1 kubeconform --strict | tee -a apply.txt
1919 - name : upload artifact
2020 uses : actions/upload-artifact@v2
2121 with :
2222 name : apply-test-all-yaml
2323 path : apply.txt
2424 - name : check apply log for error
2525 run : |
26- if grep '^ERR' apply.txt; then exit 1; fi
26+ if [ -s apply.txt ] ; then exit 1; fi
File renamed without changes.
You can’t perform that action at this time.
0 commit comments