Skip to content
Snippets Groups Projects
Commit 8eae47b9 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

Resolve "Upload docker image to harbor"

parent 4019fb30
No related branches found
No related tags found
2 merge requests!7New RELEASE,!4Resolve "Upload docker image to harbor"
......@@ -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)!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment