Skip to content
Snippets Groups Projects

moving to the new cluster

Merged Adam Fekete requested to merge new_cluster into master
9 files
+ 551
44
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -30,19 +30,15 @@ git config --global user.email $GITLAB_USER_EMAIL
# Clone the private repository
git clone git@gitlab.mpcdf.mpg.de:nomad-lab/analytics-deployment.git /tmp/analytics-deployment
# Generate the list of all metainfos
python .gitlab-ci/generate_tutorials_json.py /tmp/analytics-deployment/deployments/api/tutorials_metainfo.json
cd /tmp/analytics-deployment
# Update the tag of the docker image
sed -i "s/^ tag\:.*/ tag\: production$CI_COMMIT_SHORT_SHA/g" deployments/hub/config/production.yaml
sed -i "s/^ tag\:.*/ tag\: production$CI_COMMIT_SHORT_SHA/g" deployments/hub/config/public.yaml
# Update the tag of the docker image
sed -i "s/^ tag\:.*/ tag\: production$CI_COMMIT_SHORT_SHA/g" deployments/hub/config.yaml
sed -i "s/^ tag\:.*/ tag\: production$CI_COMMIT_SHORT_SHA/g" deployments/hub/public.yaml
# Finally, commit and push the changes
git add deployments/api/tutorials_metainfo.json
git add deployments/hub/config/production.yaml
git add deployments/hub/config/public.yaml
git add deployments/hub/config.yaml
git add deployments/hub/public.yaml
git commit -m "CI: Update the hub image for production ($CI_PIPELINE_URL)"
git push
Loading