Skip to content
Snippets Groups Projects

merge qa-build-cms-hlt-ma commit 859accf6 from 6261987

Merged Ghost User requested to merge tmp_qa-build-cms-hlt-ma_859accf6 into master
24 files
+ 8275
41
Compare changes
  • Side-by-side
  • Inline
Files
24
+ 2
2
@@ -510,7 +510,7 @@ function test_standalone_image_docker(){
# Input environment variable ${CIENV_DOCKERREGISTRY}: registry where the image should be pushed
# Input environment variable ${CIENV_SINGULARITYREGISTRY}: registry where the image should be pushed
# Input environment variable ${CIENV_SINGULARITYROBOT}: robot user for the registry where the image should be pushed
# Input environment variable ${CI_BUILD_TOKEN}: authentication token for the gitlab registry
# Input environment variable ${CI_JOB_TOKEN}: authentication token for the gitlab registry
# Input environment variable ${CI_SING_TOKEN}: authentication token for the HARBOR registry
# Output: standalone WL image stored in the remote Docker image registry
function publish_standalone_image(){
@@ -523,7 +523,7 @@ function publish_standalone_image(){
ARCH="$(uname -m)"
theimage="${CIENV_DOCKERREGISTRY}/${HEPWL_DOCKERIMAGENAME}:${HEPWL_DOCKERIMAGETAG}"
echo "[publish_standalone_image] theimage: $theimage"
echo $CI_BUILD_TOKEN | docker login -u gitlab-ci-token --password-stdin gitlab-registry.cern.ch || fail "[publish_standalone_image] docker login"
echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin gitlab-registry.cern.ch || fail "[publish_standalone_image] docker login"
echo "[publish_standalone_image] docker push ${theimage}_${ARCH}"
docker tag "${theimage}" "${theimage}_${ARCH}" || fail "[publish_standalone_image] docker tag ${theimage} ${theimage}_${ARCH}"
docker push "${theimage}_${ARCH}" || fail "[publish_standalone_image] docker push ${theimage}_${ARCH}"
Loading