-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from DataBiosphere/publishChart
RW-11041 add a workflow for publishing leo charts
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: publish-terra-app-helm-charts | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
chart-name: | ||
description: 'Name for the chart. Valid values: aou-rstudio-chart, aou-sas-chart.' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
update-and-publish: | ||
name: Publish new charts in terra-app-helm directory | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Find out next chart version | ||
run: | | ||
currentVersion=$(grep '^version:' terra-app-helm/${{ inputs.chart-name }}/Chart.yaml | awk '{print $NF}') | ||
echo "CURRENT_VERSION=$currentVersion" >> $GITHUB_ENV | ||
- name: Publish the new helm chart and update index.yaml | ||
run: | | ||
./terra-app-helm/publish.sh ${{ inputs.chart-name }} $CURRENT_VERSION |