Skip to content
Snippets Groups Projects
Unverified Commit 4cb70cd0 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #1442 from FZJ-INM1-BDA/fix_helm

fix helm + doc
parents ef164648 80effe67
No related branches found
No related tags found
No related merge requests found
......@@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v3
- name: 'Deploy'
run: |
export KUBECONFIG="~/.kube_config"
echo "${{ secrets.KUBECONFIG }}" > ~/.kube_config
helm 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 install ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
else
echo "tag ${{ inputs.IMAGE_TAG }} found. Update"
echo helm upgrade ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
helm --kubeconfig=$kubecfg_path upgrade ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
else
echo "tag ${{ inputs.IMAGE_TAG }} not found. Install"
helm --kubeconfig=$kubecfg_path install ${{ inputs.IMAGE_TAG }} .helm/siibra-explorer/
fi
rm ~/.kube_config
rm $kubecfg_path
......@@ -155,7 +155,7 @@ jobs:
okd_token: ${{ secrets.OKD_PROD_SECRET }}
trigger-deploy-master-rancher:
if: ${{ needs.setting-vars.outputs.BRANCH_NAME == 'staging' && success() }}
if: ${{ needs.setting-vars.outputs.BRANCH_NAME == 'master' && success() }}
needs:
- build-docker-img
- setting-vars
......
# Deployment
This document is intended for a documentation on how siibra-explorer can be deployed to a [kubernetes (k8s)](https://kubernetes.io/) cluster via [helm](https://helm.sh/).
## Active deployments
- k8s cluster adminstered by ebrains 2.0 is at https://rancher.tc.humanbrainproject.eu
- check k8s documentation on how to authenticate
- to update prod installation
```sh
helm upgrade master .helm/siibra-explorer
```
## Persistent resources
Persistent resources are stored under `.helm/adhoc/*.yml`. They only need to be created once, and do not need to be redeployed each time.
## Chart
Helm chart for each release is stored under `./helm/siibra-explorer/*`.
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