feat: attempt to add a e2e workflow (#1143)
* feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
e34899bfe2
commit
2f9e6068d3
12 files changed
+205
-10
No files matched your search
@@ -0,0 +1,34 @@
|
||||
---
|
||||
homepage:
|
||||
enabled: true
|
||||
|
||||
grafana:
|
||||
enabled: true
|
||||
password: fake
|
||||
|
||||
kube_prometheus_stack:
|
||||
enabled: true
|
||||
|
||||
kubernetes_dashboard:
|
||||
enabled: true
|
||||
|
||||
weave_gitops:
|
||||
enabled: true
|
||||
password: fake
|
||||
|
||||
csi_driver_nfs:
|
||||
enabled: true
|
||||
storage_class:
|
||||
- name: fake
|
||||
server: fake
|
||||
share: /fake
|
||||
|
||||
system_upgrade_controller:
|
||||
enabled: true
|
||||
|
||||
discord_template_notifier:
|
||||
enabled: true
|
||||
webhook_url: https://discord.com/api/webhooks/fake/fake
|
||||
|
||||
volsync:
|
||||
enabled: true
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
ci_test: true
|
||||
|
||||
bootstrap_distribution: k3s
|
||||
bootstrap_github_username: onedr0p
|
||||
bootstrap_github_repository_name: flux-cluster-template
|
||||
bootstrap_github_repository_branch: main
|
||||
bootstrap_age_public_key: $BOOTSTRAP_AGE_PUBLIC_KEY
|
||||
bootstrap_timezone: Etc/UTC
|
||||
bootstrap_acme_email: fake
|
||||
bootstrap_acme_production_enabled: false
|
||||
bootstrap_flux_github_webhook_token: fake
|
||||
bootstrap_cloudflare_domain: fake
|
||||
bootstrap_cloudflare_token: fake
|
||||
bootstrap_cloudflare_account_tag: fake
|
||||
bootstrap_cloudflare_tunnel_secret: fake
|
||||
bootstrap_cloudflare_tunnel_id: fake
|
||||
bootstrap_node_cidr: 10.10.10.0/24
|
||||
bootstrap_kubeapi_addr: 10.10.10.254
|
||||
bootstrap_k8s_gateway_addr: 10.10.10.253
|
||||
bootstrap_external_ingress_addr: 10.10.10.252
|
||||
bootstrap_internal_ingress_addr: 10.10.10.251
|
||||
bootstrap_cilium_loadbalancer_mode: dsr
|
||||
bootstrap_ipv6_enabled: false
|
||||
bootstrap_cluster_cidr: 10.42.0.0/16
|
||||
bootstrap_service_cidr: 10.43.0.0/16
|
||||
bootstrap_local_storage_path: /var/openebs/local
|
||||
bootstrap_nodes:
|
||||
master:
|
||||
- name: k8s-0
|
||||
address: 10.10.10.100
|
||||
username: fake
|
||||
worker:
|
||||
- name: k8s-1
|
||||
address: 10.10.10.101
|
||||
username: fake
|
||||
@@ -0,0 +1,77 @@
|
||||
---
|
||||
name: "e2e"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths: ["bootstrap/**"]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
e2e:
|
||||
name: e2e
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
id: setup-python
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Cache venv
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements.txt', 'requirements.yaml') }}
|
||||
path: .venv
|
||||
|
||||
- name: Setup Homebrew
|
||||
uses: Homebrew/actions/setup-homebrew@master
|
||||
|
||||
- name: Setup Workflow Tools
|
||||
shell: bash
|
||||
run: brew install go-task
|
||||
|
||||
- name: Install Brew dependencies
|
||||
shell: bash
|
||||
run: task brew:deps
|
||||
|
||||
- name: Initialize Direnv
|
||||
shell: bash
|
||||
run: direnv allow .
|
||||
|
||||
- name: Initialize Sops Age key
|
||||
shell: bash
|
||||
run: task sops:init
|
||||
|
||||
- name: Install Ansible dependencies
|
||||
shell: bash
|
||||
run: task ansible:deps
|
||||
|
||||
- name: Initialize config
|
||||
shell: bash
|
||||
run: |
|
||||
task init
|
||||
cp ./.github/tests/config.yaml ./bootstrap/vars/config.yaml
|
||||
cp ./.github/tests/addons.yaml ./bootstrap/vars/addons.yaml
|
||||
export BOOTSTRAP_AGE_PUBLIC_KEY=$(sed -n 's/# public key: //gp' age.key)
|
||||
envsubst < ./bootstrap/vars/config.yaml | sponge ./bootstrap/vars/config.yaml
|
||||
|
||||
- name: Run configure
|
||||
shell: bash
|
||||
run: task --yes configure
|
||||
|
||||
- name: List Hosts
|
||||
shell: bash
|
||||
run: task ansible:list
|
||||
|
||||
- name: Run repo clean and reset
|
||||
shell: bash
|
||||
run: |
|
||||
task repo:clean
|
||||
task --yes repo:reset
|
||||
Reference in new issue
Block a user