Skip to content

Commit f6bc1a5

Browse files
committed
reorganize helm push
1 parent 12fa564 commit f6bc1a5

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Get dependencies
17+
- name: Setup Helm
1818
run: |
19+
helm plugin install https://github.com/chartmuseum/helm-push.git
1920
helm repo add bitnami https://charts.bitnami.com/bitnami
2021
helm repo add ncsa https://opensource.ncsa.illinois.edu/charts/
2122
helm dep build
@@ -31,14 +32,11 @@ jobs:
3132
echo "::set-output name=version::$version"
3233
echo "::set-output name=changelog::$changelog"
3334
34-
- name: Publish to NCSA OpenSource
35-
uses: bsord/helm-push@v3
36-
with:
37-
username: ${{ secrets.HELM_USERNAME }}
38-
password: ${{ secrets.HELM_PASSWORD }}
39-
repository-url: "https://opensource.ncsa.illinois.edu/charts"
40-
chart-folder: "."
41-
force: true
35+
- name: package helm chart
36+
run: |
37+
helm lint .
38+
helm package .
39+
helm inspect chart *.tgz
4240
4341
- name: create release
4442
uses: actions/create-release@v1
@@ -60,3 +58,10 @@ jobs:
6058
asset_path: ./betydb-${{ steps.release_info.outputs.version }}.tgz
6159
asset_name: betydb-${{ steps.release_info.outputs.version }}.tgz
6260
asset_content_type: application/zip
61+
62+
- name: Publish to NCSA OpenSource
63+
env:
64+
HELM_REPO_USERNAME=${{ secrets.HELM_USERNAME }}
65+
HELM_REPO_PASSWORD=${{ secrets.HELM_PASSWORD }}
66+
run: |
67+
helm cm-push ./betydb-${{ steps.release_info.outputs.version }}.tgz https://opensource.ncsa.illinois.edu/charts

0 commit comments

Comments
 (0)