Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analytics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
analytics
Merge requests
!38
moving to the new cluster
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
moving to the new cluster
new_cluster
into
master
Overview
0
Commits
2
Pipelines
2
Changes
9
Merged
Adam Fekete
requested to merge
new_cluster
into
master
4 years ago
Overview
0
Commits
2
Pipelines
2
Changes
9
Expand
0
0
Merge request reports
Compare
master
version 1
e46827a0
4 years ago
master (base)
and
latest version
latest version
d2fc8891
2 commits,
4 years ago
version 1
e46827a0
1 commit,
4 years ago
9 files
+
551
−
44
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
.gitlab-ci/update_tag_production.sh
+
5
−
9
Options
@@ -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