Skip to content
Snippets Groups Projects
Commit bae0338c authored by Ricardo Rocha's avatar Ricardo Rocha
Browse files

[cern] Add gitlab ci for repo build

parent 9318e0a0
No related branches found
No related tags found
No related merge requests found
Pipeline #812450 passed with stages
in 3 minutes and 44 seconds
stages:
- build
- deploy
before_script:
- mkdir -p .repo
build:
stage: build
image: gitlab-registry.cern.ch/cloud/ciadm
script:
- helm init --client-only
- helm repo add openstack https://s3.cern.ch/openstack-charts
- helm repo add openstack-infra https://s3.cern.ch/openstack-infra-charts
- for chart in $(ls -d */); do if [ -f ${chart::-1}/Chart.yaml ]; then sed -i -e 's#http://localhost:8879/charts#https://s3.cern.ch/openstack-infra-charts#' ${chart::-1}/requirements.yaml; helm dep update ${chart::-1}; helm package -d .repo ${chart::-1}; fi done
- helm repo index --url https://s3.cern.ch/openstack-charts .repo
artifacts:
paths:
- .repo
expire_in: 1 week
only:
- tags
deploy:
stage: deploy
image: gitlab-registry.cern.ch/cloud/ciadm
script:
- s3cmd --access_key=${AWS_ACCESS_KEY} --secret_key=${AWS_SECRET_KEY} --host-bucket='%(bucket)s.s3.cern.ch' --host=s3.cern.ch sync -P .repo/* s3://openstack-charts
dependencies:
- build
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment