-
-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (43 loc) · 1.14 KB
/
k8s_plan.yml
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
---
name: Compute k8s plan
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- 'k8s/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
plan:
runs-on: ubuntu-latest
steps:
- name: Check out master
uses: actions/checkout@v4
with:
ref: master
submodules: recursive
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Compile k8s charts
run: make k8s
- name: Check out PR
uses: actions/checkout@v4
with:
clean: false
- name: Compute dag/diff
run: make k8s
- name: Save artifacts
run: |
mkdir -p ./artifacts
echo ${{ github.event.number }} > ./artifacts/PR
mv .build/dag.mermaid ./artifacts/dag.mermaid
mv .build/k8s.df ./artifacts/k8s.df
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: k8s-plan-artifacts
path: artifacts/