-
-
Notifications
You must be signed in to change notification settings - Fork 10
72 lines (64 loc) · 1.84 KB
/
validate.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Validate
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
validate-landscape-data:
runs-on: ubuntu-latest
name: "Validate landscape data file"
steps:
- uses: actions/checkout@v4
- uses: cncf/landscape2-validate-action@v2
with:
target_kind: data
target_path: ./landscape.yml
validate-landscape-settings:
runs-on: ubuntu-latest
name: "Validate landscape settings file"
steps:
- uses: actions/checkout@v4
- uses: cncf/landscape2-validate-action@v2
with:
target_kind: settings
target_path: ./settings.yml
validate-landscape-guide:
runs-on: ubuntu-latest
name: "Validate landscape guide file"
steps:
- uses: actions/checkout@v4
- uses: cncf/landscape2-validate-action@v2
with:
target_kind: guide
target_path: ./guide.yml
build-landscape:
runs-on: ubuntu-latest
name: Build landscape
needs: [validate-landscape-data, validate-landscape-settings, validate-landscape-guide]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
# Install Landscape2
- name: Install Landscape2
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/cncf/landscape2/releases/download/v0.8.1/landscape2-installer.sh | sh
# Build Landscape
- name: Build Landscape
env:
GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN }}
CRUNCHBASE_API_KEY: ${{ secrets.CRUNCHBASE_API_KEY }}
run: |
landscape2 build \
--data-file landscape.yml \
--settings-file settings.yml \
--guide-file guide.yml \
--logos-path logos \
--output-dir build