diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4a960783d4b9c11c342ae93e1160aa97320b7a0c..1c11599fc578c31349ffb0fc8e86c4bfd4be02b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,7 @@ variables: # File for storing the POM project.version VARIABLES_FILE: ./variables.txt CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA + HARBOR_IMAGE: harbor.gwdg.de/sub-fe/$CI_PROJECT_NAME/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA ################### ### TEMPLATES ### @@ -43,6 +44,7 @@ variables: .crane-setup_template: &crane-setup - crane auth login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - crane auth login -u "$DARIAH_HARBOR_USER2" -p "$DARIAH_HARBOR_PW2" harbor.gwdg.de stages: - prepare @@ -129,6 +131,9 @@ tag_container_image: - source $VARIABLES_FILE - crane tag $CONTAINER_IMAGE latest - crane tag $CONTAINER_IMAGE $PVERSION-$CI_COMMIT_SHORT_SHA + - crane cp $CONTAINER_IMAGE $HARBOR_IMAGE + - crane tag $HARBOR_IMAGE latest + - crane tag $HARBOR_IMAGE $PVERSION-$CI_COMMIT_SHORT_SHA # Deploy DEB files to APTLY repository. # All four DEB files are deployed with SNAPSHOT version (branch: develop)!