Skip to content

Commit dca77db

Browse files
jennifer-richardsNGPixel
authored andcommitted
ci: package and push helm chart
1 parent 6ed19bb commit dca77db

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,17 @@ jobs:
248248
push: true
249249
tags: ghcr.io/ietf-tools/datatracker:${{ env.PKG_VERSION }}
250250

251+
- name: Package and Push Chart
252+
env:
253+
VERSION: 2.0.${{ github.run_number }}
254+
run: |
255+
echo "Setting version ${{ env.PKG_VERSION }}..."
256+
sed -i -r -e "s|^version: .*$|version: '${{ env.PKG_VERSION }}'|" -e "s|^appVersion: .*$|appVersion: '${{ env.PKG_VERSION }}'|" helm/Chart.yaml
257+
helm plugin install https://github.com/chartmuseum/helm-push.git
258+
helm repo add chartmuseum https://charts.ietf.org
259+
helm cm-push --version="${{ env.PKG_VERSION }}" --username="${{ secrets.HELM_REPO_USERNAME }}" --password="${{ secrets.HELM_REPO_PASSWORD }}" helm/ chartmuseum
260+
helm repo remove chartmuseum
261+
251262
- name: Update CHANGELOG
252263
id: changelog
253264
uses: Requarks/changelog-action@v1

0 commit comments

Comments
 (0)