-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (72 loc) · 2.2 KB
/
ci.yaml
File metadata and controls
78 lines (72 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: ci
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
python:
name: python / ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install ruff
run: pip install --no-cache-dir ruff==0.7.4
- name: ruff check
run: ruff check controller.py
- name: ruff format --check
run: ruff format --check controller.py
dockerfile:
name: dockerfile / hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
chart:
name: helm / lint + template
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
with:
version: v3.16.3
- name: helm lint
run: helm lint chart/
- name: helm template (defaults + CA bundle + ESO path)
run: |
helm template ci chart/ > /dev/null
helm template ci chart/ \
--set vcenter.host=vc.example.com \
--set vcenter.user=u --set vcenter.password=p > /dev/null
helm template ci chart/ \
--set vcenter.existingSecret=my-eso-secret \
--set vcenter.caBundle.configMapName=vcenter-ca > /dev/null
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: helm/chart-testing-action@v2
- name: ct lint
# Catches SemVer/maintainer/icon/README drift that plain `helm lint`
# misses. `--all` since this repo has a single chart in chart/.
run: ct lint --all --chart-dirs . --validate-maintainers=false
image:
name: image / buildx smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: docker build (no push, linux/amd64,linux/arm64)
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: false
tags: ci/gpu-node-vsphere-maintenance-controller:ci