-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (60 loc) · 2.18 KB
/
test-action-kustomize.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Action CI (Kustomize)
on: [push]
jobs:
test-action-kustomize-job-win32:
runs-on: windows-latest
name: kube-score kustomize (Win32)
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: azure/setup-kubectl@v3
id: install
- name: Make temporal output directory
run: mkdir -p out/kustomize
- name: kustomize build to standard template
run: kubectl kustomize sample-manifests\kustomize\overlays\production > ./out/kustomize/sample-kustomize.yaml
- name: kube-score action step
uses: ./ # Uses an action in the root directory
id: ksga
with:
manifests-folders: './out/kustomize/*.yaml'
ignore-exit-code: 'true'
kube-score-version: '1.14.0'
test-action-kustomize-job-linux:
runs-on: ubuntu-latest
name: kube-score kustomize (Linux)
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: azure/setup-kubectl@v3
id: install
- name: Make temporal output directory
run: mkdir -p out/kustomize
- name: kustomize build to standard template
run: kubectl kustomize sample-manifests/kustomize/overlays/production > ./out/kustomize/sample-kustomize.yaml
- name: kube-score action step
uses: ./ # Uses an action in the root directory
id: ksga
with:
manifests-folders: './out/kustomize/*.yaml'
ignore-exit-code: 'true'
kube-score-version: '1.14.0'
test-action-kustomize-job-macos:
runs-on: macos-latest
name: kube-score kustomize (MacOS)
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: azure/setup-kubectl@v3
id: install
- name: Make temporal output directory
run: mkdir -p out/kustomize
- name: kustomize build to standard template
run: kubectl kustomize sample-manifests/kustomize/overlays/production > ./out/kustomize/sample-kustomize.yaml
- name: kube-score action step
uses: ./ # Uses an action in the root directory
id: ksga
with:
manifests-folders: './out/kustomize/*.yaml'
ignore-exit-code: 'true'
kube-score-version: '1.14.0'