-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.57 KB
/
lint.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
44
45
46
47
48
49
50
51
52
53
---
# Lint and Format files.
# Linting YAML/YML
name: Lint & Format
# yamllint disable-line rule:truthy
on:
workflow_call:
push:
branches: ['main']
pull_request:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
lintYaml:
name: Lint YAML Files
uses: darpa-askem/.github/.github/workflows/lint-yaml.yaml@main
with:
strict: false
lintDocker:
name: Lint Docker Files
uses: darpa-askem/.github/.github/workflows/lint-docker.yaml@main
kubeconform:
name: Validate K8 Configs
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
steps:
# 1 - Checkout the repository
- name: Checkout the repository
uses: actions/checkout@v3
# 2 - Login to GHCR
- name: Login to registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# 3 - Validate Kubernetes Configs
- name: Validate K8s Config
uses: docker://ghcr.io/yannh/kubeconform:v0.5.0-alpine
with:
entrypoint: '/kubeconform'
args: '-summary -output json -ignore-filename-pattern secrets -ignore-filename-pattern certificates -ignore-filename-pattern keycloak-realm -ignore-filename-pattern keycloak-ingress -ignore-filename-pattern data-service-ingress -ignore-filename-pattern overlays -ignore-filename-pattern keycloak\/realm -ignore-filename-pattern kustomization ./kubernetes'