feat: Documentation (#33) #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
- development | |
jobs: | |
lint-helm: | |
runs-on: ubuntu-latest | |
name: Lint Helm Charts | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: "latest" | |
- name: Lint Helm Charts | |
run: | | |
helm lint charts/* | |
deploy: | |
runs-on: ubuntu-latest | |
needs: lint-helm | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure kubeconfig | |
uses: azure/k8s-set-context@v4 | |
with: | |
method: kubeconfig | |
kubeconfig: ${{ secrets.KUBECONFIG }} | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: "latest" | |
- name: Add prometheus-community Helm repository | |
run: helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
- name: Update Helm repositories | |
run: helm repo update | |
- name: Deploy Mainnet | |
if: github.ref == 'refs/heads/main' | |
run: | | |
helm upgrade kube-prometheus-stack prometheus-community/kube-prometheus-stack --version 55.7.0 -n kube-prometheus-stack --values charts/monitoring/values.yaml | |
helm upgrade --install cert-manager charts/networking/ -f charts/networking/values.yaml -n cert-manager --set ingress-nginx.enabled=false | |
helm upgrade --install ingress-nginx charts/networking/ -f charts/networking/values.yaml -n ingress-nginx --set cert-manager.enabled=false,installClusterIssuer=false | |
helm upgrade --install bitcoind charts/bitcoind/ -f charts/bitcoind/values.yaml -n bitcoin-mainnet --create-namespace | |
helm upgrade --install lightningd charts/lightningd/ -f charts/lightningd/values.yaml -n lightning-mainnet --create-namespace | |
helm upgrade --install rtl charts/rtl/ -f charts/rtl/values.yaml -n lightning-mainnet | |
helm upgrade --install pgadmin4 charts/database/ -f charts/database/values.yaml -n pgadmin --create-namespace | |
helm upgrade --install swissknife charts/swissknife/ -f charts/swissknife/values.yaml -n swissknife --create-namespace | |
helm upgrade --install dashboard charts/dashboard/ -f charts/dashboard/values.yaml -n swissknife | |
helm upgrade --install docs charts/docs/ -f charts/docs/values.yaml -n docs --create-namespace | |
- name: Deploy Testnet | |
if: github.ref == 'refs/heads/development' | |
run: | | |
helm upgrade --install bitcoind charts/bitcoind/ -f charts/bitcoind/testnet-values.yaml -n bitcoin-testnet --create-namespace | |
# Add more Helm upgrade/install commands as needed for other charts |