Skip to content
Snippets Groups Projects
Commit 5b7ca298 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix helm

parent 6d012aee
No related branches found
No related tags found
No related merge requests found
......@@ -18,17 +18,18 @@ jobs:
- uses: actions/checkout@v3
- name: 'Deploy'
run: |
echo "${{ secrets.KUBECONFIG }}" > ~/.kube_config
helm --kubeconfig=~/.kube_config status ${{ inputs.IMAGE_TAG }}
kubecfg_path=${{ runner.temp }}/.kube_config
echo "${{ secrets.KUBECONFIG }}" > $kubecfg_path
helm --kubeconfig=$kubecfg_path status ${{ inputs.IMAGE_TAG }}
helm_status=$(echo $?)
if [[ $helm_status = "0" ]]
then
echo "tag ${{ inputs.IMAGE_TAG }} not found. Install"
echo helm --kubeconfig=~/.kube_config install ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
echo helm --kubeconfig=$kubecfg_path install ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
else
echo "tag ${{ inputs.IMAGE_TAG }} found. Update"
echo helm --kubeconfig=~/.kube_config upgrade ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
echo helm --kubeconfig=$kubecfg_path upgrade ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
fi
rm ~/.kube_config
rm $kubecfg_path
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment