Skip to content

Commit

Permalink
feat(app-node): split GA (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ramon Mañes <[email protected]>
  • Loading branch information
tty47 authored Dec 17, 2024
1 parent b37d4ef commit 35d9d2f
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/release-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Release App Charts

on:
push:
branches:
- main
paths:
- 'charts/celestia-app/**'
- 'common-charts/common-celestia-app/**'
pull_request:
paths:
- 'charts/celestia-app/**'
- 'common-charts/common-celestia-app/**'
workflow_dispatch:

jobs:
release-common-celestia-app:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser for common-celestia-app
uses: helm/[email protected]
with:
charts_dir: "common-charts"
packages_with_index: "true"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

release-celestia-app:
permissions:
contents: write
runs-on: ubuntu-latest
needs: release-common-celestia-app
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Add Helm Repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add celestiaorg https://celestiaorg.github.io/helm-charts
helm repo update
- name: Update Helm Dependencies for celestia-app
run: |
helm dependency update charts/celestia-app
- name: Run chart-releaser for celestia-app
uses: helm/[email protected]
with:
charts_dir: "charts"
packages_with_index: "true"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
82 changes: 82 additions & 0 deletions .github/workflows/release-node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Release Node Charts

on:
push:
branches:
- main
paths:
- 'charts/celestia-node/**'
- 'common-charts/common-celestia-node/**'
pull_request:
paths:
- 'charts/celestia-node/**'
- 'common-charts/common-celestia-node/**'
workflow_dispatch:

jobs:
release-common-celestia-node:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser for common-celestia-node
uses: helm/[email protected]
with:
charts_dir: "common-charts"
packages_with_index: "true"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

release-celestia-node:
permissions:
contents: write
runs-on: ubuntu-latest
needs: release-common-celestia-node
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Add Helm Repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add celestiaorg https://celestiaorg.github.io/helm-charts
helm repo update
- name: Update Helm Dependencies for celestia-node
run: |
helm dependency update charts/celestia-node
- name: Run chart-releaser for celestia-node
uses: helm/[email protected]
with:
charts_dir: "charts"
packages_with_index: "true"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 35d9d2f

Please sign in to comment.