-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.18 KB
/
kubernetes.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: Pull Request
on:
pull_request:
branches:
- main
jobs:
kustomize_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
path: repo
- name: kustomize build
run: |
env -C repo/ kustomize build ./kustomize -o ../manifests.yaml
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: manifests-kustomize
path: manifests.yaml
retention-days: 1
kubeconform:
runs-on: ubuntu-latest
needs:
- kustomize_build
strategy:
matrix:
kubernetes-version:
- 1.27.0
fail-fast: false
steps:
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: manifests-kustomize
- uses: docker://ghcr.io/yannh/kubeconform:v0.6.2@sha256:d49b233175b55c18d9a2af5e0b62249c3bc3bdd6161126655b4ad585c4b9b064
with:
entrypoint: '/kubeconform'
args: >-
-strict
-kubernetes-version="${{ matrix.kubernetes-version }}"
-summary manifests.yaml