Skip to content

Commit

Permalink
DEVOPS-1971-Migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilozni Ziv authored and Vilozni Ziv committed Sep 15, 2024
1 parent f1b879a commit 20aa1a9
Showing 1 changed file with 9 additions and 33 deletions.
42 changes: 9 additions & 33 deletions .github/workflows/docker-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,6 @@ jobs:
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: Bump version and push tag
uses: AccessibleAI/[email protected]
Expand All @@ -61,10 +37,10 @@ jobs:
shell: bash
if: ${{ steps.tag_bump.outputs.bumped == 'true' }}
run: |
echo "::set-output name=docker_repo::cnvrg-operator"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/*/})"
echo "##[set-output name=head;]$(git rev-parse --short HEAD)"
echo "##[set-output name=repo_url;]$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY)"
echo "::set-output name=docker_repo::cnvrg-operator"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/*/})"
echo "##[set-output name=head;]$(git rev-parse --short HEAD)"
echo "##[set-output name=repo_url;]$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY)"
id: extract_info

- name: Login to Docker Hub
Expand Down Expand Up @@ -127,7 +103,7 @@ jobs:
id: cnvrg_changelog
with:
from_version: ${{ steps.tag_bump.outputs.tag }}
to_version: ${{ steps.tag_bump.outputs.new_tag }}
to_version: ${{ steps.tag_bump.outputs.new_tag }}
jira_token: ${{ secrets.JIRA_TOKEN }}
slack_webhook_url: false
if: ${{ steps.tag_bump.outputs.bumped == 'true' && steps.tag_bump.outputs.prerelease == 'false' }}
Expand Down Expand Up @@ -190,10 +166,10 @@ jobs:
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
helm plugin install https://github.com/chartmuseum/helm-push.git
helm repo add cnvrg https://chartmuseum-new.cnvrg.io
helm dependency build charts/mlops
helm cm-push charts/mlops -f cnvrg -u=${CHARTMUSEUM_USER} -p=${CHARTMUSEUM_PASSWORD} --context-path /cnvrg
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
Expand Down

0 comments on commit 20aa1a9

Please sign in to comment.