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

fix helm

parent ef164648
No related branches found
No related tags found
No related merge requests found
......@@ -18,18 +18,17 @@ jobs:
- uses: actions/checkout@v3
- name: 'Deploy'
run: |
export KUBECONFIG="~/.kube_config"
echo "${{ secrets.KUBECONFIG }}" > ~/.kube_config
helm status ${{ inputs.IMAGE_TAG }}
helm --kubeconfig=~/.kube_config status ${{ inputs.IMAGE_TAG }}
helm_status=$(echo $?)
if [[ $helm_status = "0" ]]
then
echo "tag ${{ inputs.IMAGE_TAG }} not found. Install"
echo helm install ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
echo helm --kubeconfig=~/.kube_config install ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
else
echo "tag ${{ inputs.IMAGE_TAG }} found. Update"
echo helm upgrade ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
echo helm --kubeconfig=~/.kube_config upgrade ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
fi
rm ~/.kube_config
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