Skip to content
Snippets Groups Projects
Commit 582a3897 authored by Julien Leduc's avatar Julien Leduc
Browse files

Now pushing the ctageneric image to gitlab-registry.cern.ch/cta/ctageneric registry

parent 1590c3e5
Branches
Tags
No related merge requests found
......@@ -48,25 +48,24 @@ cta_rpm:
- docker
ctafrontend_docker:
ctageneric_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/ctageneric:${CI_PIPELINE_ID}
DOCKER_FILE: continuousintegration/docker/ctafrontend/cc7/Dockerfile
ctafrontend_docker_rename:
ctageneric_docker_rename:
stage: rename:dockerimage
variables:
TO: gitlab-registry.cern.ch/cta/cta-orchestration
REPOSITORY: cta/cta-orchestration
TO: gitlab-registry.cern.ch/cta/ctageneric
REPOSITORY: cta/ctageneric
GITLAB_HOST: gitlab.cern.ch
script:
- printenv
- export OLDTAG=${CI_PIPELINE_ID}
- export NEWTAG=${CTA_BUILD_ID}
- cd continuousintegration/ci_helpers/
......
......@@ -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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment