Skip to content

Commit bb8226c

Browse files
authored
Merge pull request #55 from DataBiosphere/publishChart
RW-11041 add a workflow for publishing leo charts
2 parents 7cd23d0 + bccd55e commit bb8226c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: publish-terra-app-helm-charts
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
chart-name:
6+
description: 'Name for the chart. Valid values: aou-rstudio-chart, aou-sas-chart.'
7+
required: true
8+
type: string
9+
10+
jobs:
11+
update-and-publish:
12+
name: Publish new charts in terra-app-helm directory
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Find out next chart version
17+
run: |
18+
currentVersion=$(grep '^version:' terra-app-helm/${{ inputs.chart-name }}/Chart.yaml | awk '{print $NF}')
19+
20+
echo "CURRENT_VERSION=$currentVersion" >> $GITHUB_ENV
21+
22+
- name: Publish the new helm chart and update index.yaml
23+
run: |
24+
./terra-app-helm/publish.sh ${{ inputs.chart-name }} $CURRENT_VERSION

0 commit comments

Comments
 (0)