Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
eda5b822
Commit
eda5b822
authored
6 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed CI script: missing string delimiter.
parent
b1511a2e
No related branches found
No related tags found
1 merge request
!24
Migration
Pipeline
#42834
passed with warnings
6 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
with
2 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
2
View file @
eda5b822
...
@@ -200,7 +200,7 @@ deploy_kubernetes:
...
@@ -200,7 +200,7 @@ deploy_kubernetes:
before_script
:
before_script
:
-
mkdir -p /etc/deploy
-
mkdir -p /etc/deploy
# kube_config is a CI/CD variable set in GitLab GUI
# kube_config is a CI/CD variable set in GitLab GUI
-
echo $
{kube_config}
| base64 -d > /etc/deploy/config
-
echo $
CI_KUBE_CONFIG
| base64 -d > /etc/deploy/config
-
helm init --client-only
-
helm init --client-only
-
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
-
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
-
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
-
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
...
@@ -212,7 +212,7 @@ deploy_kubernetes:
...
@@ -212,7 +212,7 @@ deploy_kubernetes:
-
export API_VERSION="$(grep "version" Chart.yaml | cut -d" " -f2)"
-
export API_VERSION="$(grep "version" Chart.yaml | cut -d" " -f2)"
-
export RELEASE_NAME="kubetest-v${API_VERSION/./-}"
-
export RELEASE_NAME="kubetest-v${API_VERSION/./-}"
-
export DEPLOYS=$(helm ls | grep $RELEASE_NAME | wc -l)
-
export DEPLOYS=$(helm ls | grep $RELEASE_NAME | wc -l)
-
export EXTERNAL_PATH="/nomad/kubetest/v${API_VERSION}
-
export EXTERNAL_PATH="/nomad/kubetest/v${API_VERSION}
"
-
if [ ${DEPLOYS} -eq 0 ]; then helm install --name=${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE} --set proxy.external.path=${EXTERNAL_PATH}; else helm upgrade ${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE}; fi
-
if [ ${DEPLOYS} -eq 0 ]; then helm install --name=${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE} --set proxy.external.path=${EXTERNAL_PATH}; else helm upgrade ${RELEASE_NAME} . --namespace=${STAGING_NAMESPACE}; fi
# except:
# except:
# - /^dev-.*$/
# - /^dev-.*$/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment