Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
dCache
cta
Commits
582a3897
Commit
582a3897
authored
8 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Now pushing the ctageneric image to gitlab-registry.cern.ch/cta/ctageneric registry
parent
1590c3e5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-6
5 additions, 6 deletions
.gitlab-ci.yml
continuousintegration/ci_helpers/rename_tag.sh
+5
-0
5 additions, 0 deletions
continuousintegration/ci_helpers/rename_tag.sh
with
10 additions
and
6 deletions
.gitlab-ci.yml
+
5
−
6
View file @
582a3897
...
...
@@ -48,25 +48,24 @@ cta_rpm:
-
docker
cta
frontend
_docker
:
cta
generic
_docker
:
stage
:
build:dockerimage
tags
:
-
docker-image-build
script
:
-
"
"
variables
:
TO
:
gitlab-registry.cern.ch/cta/cta
-orchestration
:${CI_PIPELINE_ID}
TO
:
gitlab-registry.cern.ch/cta/cta
generic
:${CI_PIPELINE_ID}
DOCKER_FILE
:
continuousintegration/docker/ctafrontend/cc7/Dockerfile
cta
frontend
_docker_rename
:
cta
generic
_docker_rename
:
stage
:
rename:dockerimage
variables
:
TO
:
gitlab-registry.cern.ch/cta/cta
-orchestration
REPOSITORY
:
cta/cta
-orchestration
TO
:
gitlab-registry.cern.ch/cta/cta
generic
REPOSITORY
:
cta/cta
generic
GITLAB_HOST
:
gitlab.cern.ch
script
:
-
printenv
-
export OLDTAG=${CI_PIPELINE_ID}
-
export NEWTAG=${CTA_BUILD_ID}
-
cd continuousintegration/ci_helpers/
...
...
This diff is collapsed.
Click to expand it.
continuousintegration/ci_helpers/rename_tag.sh
+
5
−
0
View file @
582a3897
...
...
@@ -13,6 +13,11 @@ REPOSITORY=$(echo ${TO} | sed -e 's%[^/]\+/%%')
GITLAB_HOST
=
gitlab.cern.ch
if
[[
"-
${
OLDTAG
}
-"
==
"-
${
NEWTAG
}
-"
]]
;
then
echo
"The 2 tags are identical:
${
OLDTAG
}
/
${
NEWTAG
}
no need to rename"
exit
0
fi
JWT_PULL_PUSH_TOKEN
=
$(
curl
-q
-u
${
DOCKER_LOGIN_USERNAME
}
:
${
DOCKER_LOGIN_PASSWORD
}
\
"https://
${
GITLAB_HOST
}
/jwt/auth?service=container_registry&scope=repository:
${
REPOSITORY
}
:pull,push"
|
cut
-d
\"
-f4
)
...
...
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