Skip to content

Commit

Permalink
Deploy cluster-api
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed May 12, 2024
1 parent baafcbf commit 8a4980f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 init --bootstrap k0sproject-k0smotron \
--control-plane k0sproject-k0smotron \
--infrastructure k0sproject-k0smotron > ./manifests/infra-cluster/cluster-api/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
1 change: 1 addition & 0 deletions aqua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ packages:
- name: kubernetes-sigs/kustomize@kustomize/v5.3.0
- name: kubernetes/[email protected]
- name: argoproj/[email protected]
- name: kubernetes-sigs/[email protected]
Empty file.
5 changes: 5 additions & 0 deletions manifests/infra-cluster/cluster-api/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ./generated.yaml

0 comments on commit 8a4980f

Please sign in to comment.