-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (45 loc) · 1.57 KB
/
Copy pathci.yml
File metadata and controls
57 lines (45 loc) · 1.57 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: read
jobs:
validate:
name: Validate Docker Configs
# GitHub-hosted: hadolint-action pulls ghcr.io/hadolint/hadolint which needs
# authenticated GHCR access; GitHub-hosted runners have ambient auth, self-hosted ARM do not.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Validate docker-compose.yml
env:
DAKERA_ROOT_API_KEY: ci-validation-placeholder
GRAFANA_PASSWORD: ci-validation-placeholder
run: docker compose -f docker/docker-compose.yml config --quiet
- name: Validate docker-compose.dev.yml
run: docker compose -f docker/docker-compose.dev.yml config --quiet
- name: Lint Dockerfiles
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: docker/Dockerfile
failure-threshold: warning
kustomize-validate:
name: Kustomize Validate
runs-on: [self-hosted, linux, arm64]
steps:
- uses: actions/checkout@v7
- name: Set up kubectl (includes kustomize)
uses: azure/setup-kubectl@v5
- name: kustomize build (validate raw manifests)
run: kustomize build k8s/ > /tmp/kustomize-output.yaml
- name: Check rendered manifest summary
run: |
echo "Rendered $(wc -l < /tmp/kustomize-output.yaml) lines"
grep "^kind:" /tmp/kustomize-output.yaml | sort | uniq -c | sort -rn