Skip to content

push mlops chart

push mlops chart #1050

Workflow file for this run

name: Docker Image CI
on:
push:
workflow_dispatch:
inputs:
msg:
description: "Msg instead of commit log"
required: true
default: 'false'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# - name: Change Chart Version
# run: |
# VERSION=1.0.0 envsubst < charts/cnvrg-cap/Chart.yaml | tee tmp-file && mv tmp-file charts/cnvrg-cap/Chart.yaml
# VERSION=1.0.0 envsubst < charts/cnvrg-operator/Chart.yaml | tee tmp-file && mv tmp-file charts/cnvrg-operator/Chart.yaml
# cat charts/cnvrg-operator/Chart.yaml && cat charts/cnvrg-cap/Chart.yaml
#
# - name: Set up Helm
# uses: azure/[email protected]
#
# - name: Run chart-testing (lint)
# run: |
# helm lint charts/cnvrg-cap/
# helm lint charts/cnvrg-operator/
#
# - name: Create kind cluster
# uses: helm/[email protected]
#
# - name: Install Crds
# run: kubectl apply -f charts/cnvrg-operator/crds/ ; sleep 2
#
# - name: Run chart-testing (install)
# run: |
# helm install cnvrg ./charts/cnvrg-operator --dry-run --namespace=cnvrg-system --debug
# helm install cnvrg ./charts/cnvrg-cap --dry-run --namespace=cnvrg --debug
- name: Package and release helm
env:
CHARTMUSEUM_USER: ${{ secrets.CHARTMUSEUM_USER }}
CHARTMUSEUM_PASSWORD: ${{ secrets.CHARTMUSEUM_PASSWORD }}
run: |
helm plugin install https://github.com/chartmuseum/helm-push.git
helm repo add cnvrg https://charts.slim.cnvrg.io/cnvrg
helm dependency build charts/mlops
helm cm-push charts/mlops -f cnvrg -u=${CHARTMUSEUM_USER} -p=${CHARTMUSEUM_PASSWORD} --context-path /cnvrg