Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstack-infra
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
kubernetes
automation
charts
openstack-infra
Commits
b41c92e5
Commit
b41c92e5
authored
6 years ago
by
Ricardo Rocha
Committed by
Ricardo Rocha
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cern] Add gitlab-ci for repo build
parent
1f1482bc
No related branches found
No related tags found
No related merge requests found
Pipeline
#924100
passed with stage
in 3 minutes and 25 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-0
29 additions, 0 deletions
.gitlab-ci.yml
with
29 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
29
−
0
View file @
b41c92e5
stages
:
-
build
-
deploy
before_script
:
-
mkdir -p .repo
build
:
stage
:
build
image
:
gitlab-registry.cern.ch/cloud/ciadm
script
:
-
curl -o helm.tar.gz https://kubernetes-helm.storage.googleapis.com/helm-v2.14.1-linux-amd64.tar.gz; mkdir -p helm; tar zxvf helm.tar.gz -C helm; cp helm/linux-amd64/helm /usr/local/bin; rm -rf helm*
-
helm init --client-only
-
helm repo add charts http://charts.cern.ch/openstack-infra/
-
for chart in $(ls -d */Chart.yaml | xargs dirname); do if [ -f ${chart}/requirements.yaml ]; then sed -i 's#http://localhost:8879/charts#http://charts.cern.ch/openstack-infra/#g' ${chart}/requirements.yaml; fi; helm dep update ${chart}; helm lint ${chart}; helm package ${chart}; done
except
:
-
tags
deploy
:
stage
:
deploy
image
:
gitlab-registry.cern.ch/cloud/ciadm
script
:
-
helm init --client-only
-
helm plugin install https://github.com/chartmuseum/helm-push
-
helm repo add charts http://charts.cern.ch/openstack-infra/
-
for chart in $(ls -d */Chart.yaml | xargs dirname); do if [ -f ${chart}/requirements.yaml ]; then sed -i 's#http://localhost:8879/charts#http://charts.cern.ch/openstack-infra/#g' ${chart}/requirements.yaml; fi; helm dep update ${chart}; helm push ${chart} --version="$(grep -R version ${chart}/Chart.yaml | awk '{print $2}')-${CI_COMMIT_TAG}+$(git log -1 --pretty=format:%h)" charts; done
only
:
-
tags
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