-
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
path: repo
- name: kustomize build
run: |
env -C repo/ kustomize build ./kustomize -o ../manifests.yaml
- uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
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@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
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