-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrun-k8s-manifests-validate.yaml
More file actions
39 lines (34 loc) · 1.07 KB
/
run-k8s-manifests-validate.yaml
File metadata and controls
39 lines (34 loc) · 1.07 KB
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
name: Run Kubernetes Manifests Validate
on:
workflow_call:
inputs:
path:
type: string
description: "Path to file or directory in which to look for manifests to validate (default: env)"
default: env
skipctl-version:
type: string
description: "Which version of `skipctl` to use (default: latest)"
default: latest
env:
MANIFESTS_PATH: ${{ inputs.path }}
jobs:
validate:
name: Validate k8s manifests
runs-on: ubuntu-latest
steps:
- name: Checkout calling repository code
uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 1
persist-credentials: false
- name: Install `skipctl` @ ${{ inputs.skipctl-version }}
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
with:
repo: kartverket/skipctl
tag: ${{ inputs.skipctl-version }}
cache: enable
- name: Run manifests validation
run: |
skipctl manifests validate --path="$MANIFESTS_PATH"