-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1.15 KB
/
generate.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
name: Generate
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: aquaproj/[email protected]
with:
aqua_version: v2.25.1
- name: Generate
run: |
clusterctl generate provider --core cluster-api > ./manifests/infra-cluster/cluster-api/core/generated.yaml
clusterctl generate provider --bootstrap k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/k0s/bootstrap/generated.yaml
clusterctl generate provider --control-plane k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/k0s/control-plane/generated.yaml
clusterctl generate provider --infrastructure k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/k0s/infrastructure/generated.yaml
if [ -n "$(git status --porcelain)" ]; then
git config --global user.email ""
git config --global user.name "GitHub Actions"
git add .
git commit -m "Update generated manifests"
git push
fi