Lightningd charts #25
Workflow file for this run
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: Deploy Mainnet | |
if: github.ref == 'refs/heads/main' | |
run: | | |
helm upgrade --install bitcoind charts/bitcoind/ -f charts/bitcoind/values.yaml --namespace bitcoin-mainnet --create-namespace | |
helm upgrade --install lightningd charts/lightningd/ -f charts/lightningd/values.yaml --namespace lightning-mainnet --create-namespace | |
- name: Deploy Testnet | |
if: github.ref == 'refs/heads/development' | |
run: | | |
helm upgrade --install bitcoind charts/bitcoind/ -f charts/bitcoind/testnet-values.yaml --namespace bitcoin-testnet --create-namespace | |
# Add more Helm upgrade/install commands as needed for other charts |