-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (40 loc) · 1.24 KB
/
ci.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
name: Continuous Integration
on: [push, pull_request]
jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: flake8 Lint
uses: py-actions/flake8@v1
with:
# ignore: "F401"
# exclude: "src/ignoreme.py"
max-line-length: "120"
path: "src"
validate-k8s:
runs-on: ubuntu-latest
name: Validate k8s manifests
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Setup Kustomize
uses: imranismail/setup-kustomize@v2.1.0-rc
with:
kustomize-version: "4.5.4"
- name: Update secret properties with injected secrets
run: envsubst < $GITHUB_WORKSPACE/k8s/secret.properties.template > $GITHUB_WORKSPACE/k8s/secret.properties
- name: Test
run: cat $GITHUB_WORKSPACE/k8s/secret.properties
- name: Kustomize
run: kustomize build k8s > /tmp/kustomized.yaml
- uses: azure/k8s-lint@v2.0
with:
manifests: |
/tmp/kustomized.yaml