Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment of testnet #2

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**

- OS: [e.g. Ubuntu/Windows/MacOS]
- Environment type [e.g. AWS/GCP/Minikube]
- k8s version [e.g. v1.21]

**Additional context**
Add any other context about the problem here.
46 changes: 46 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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@v2
- 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@v2
- name: Configure kubeconfig
uses: azure/k8s-set-context@v1
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
# Add more Helm upgrade/install commands as needed for other charts
- 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
28 changes: 0 additions & 28 deletions .github/workflows/helm_ci_cd.yml

This file was deleted.

2 changes: 1 addition & 1 deletion charts/bitcoind/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.1.0
appVersion: 26.0.0
Loading