Skip to content
Snippets Groups Projects
Verified Commit 14e042c2 authored by Martin Weise's avatar Martin Weise
Browse files

Use correct kube config path

parent 55f8c15b
Branches
Tags
No related merge requests found
...@@ -174,7 +174,7 @@ deploy-staging: ...@@ -174,7 +174,7 @@ deploy-staging:
url: ${CI_ENV_STAGING_URL} url: ${CI_ENV_STAGING_URL}
before_script: before_script:
- apk add --no-cache helm kubectl - apk add --no-cache helm kubectl
- echo ${CI_K8S_CONFIG} | base64 -d > ./kubecfg - echo ${CI_K8S_CONFIG} | base64 -d > ~/.kube/config
- helm dependency update ./helm/seaweedfs - helm dependency update ./helm/seaweedfs
- helm package ./helm/seaweedfs --destination ./build - helm package ./helm/seaweedfs --destination ./build
- helm dependency update ./helm/dbrepo - helm dependency update ./helm/dbrepo
...@@ -182,7 +182,7 @@ deploy-staging: ...@@ -182,7 +182,7 @@ deploy-staging:
- helm -n ${CI_ENV_STAGING_NAMESPACE} uninstall ${CI_ENV_STAGING_RELEASE_NAME} - helm -n ${CI_ENV_STAGING_NAMESPACE} uninstall ${CI_ENV_STAGING_RELEASE_NAME}
- kubectl -n ${CI_ENV_STAGING_NAMESPACE} delete pvc --all - kubectl -n ${CI_ENV_STAGING_NAMESPACE} delete pvc --all
script: script:
- helm -n ${CI_ENV_STAGING_NAMESPACE} upgrade --install ${CI_ENV_STAGING_RELEASE_NAME} ./build/${CI_ENV_STAGING_RELEASE_NAME}-${CHART_VERSION}.tgz --create-namespace -f ./.gitlab/agents/dev/values.yaml - helm -n ${CI_ENV_STAGING_NAMESPACE} upgrade --install ${CI_ENV_STAGING_RELEASE_NAME} ./build/dbrepo-${CHART_VERSION}.tgz --create-namespace -f ./.gitlab/agents/dev/values.yaml
only: only:
refs: refs:
- dev - dev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment