Commit 6923466d authored by Stefan Wolfsheimer's avatar Stefan Wolfsheimer Committed by Stefan Wolfsheimer
Browse files

remove verson from container removal script

parent e9dd4a3c
......@@ -53,6 +53,7 @@ else
fi
IMAGE_NAME=${REGISTRY}/${IMAGE_NAME_VERSION}
IMAGE_WITHOUT_VERSION=${REGISTRY}/$( echo ${IMAGE_NAME_VERSION} | sed 's/:.*$//' )
is_logged_in() {
cat ~/.docker/config.json | jq -r --arg url "${REGISTRY}" '.auths | has($url)'
......@@ -77,7 +78,7 @@ then
# unauthorized: Pushing Docker images with manifest v2 schema 1 to this repository is blocked. For more information visit https://www.jfrog.com/confluence/display/RTF/Advanced+Topics#AdvancedTopics-DockerManifestV2Schema1Deprecation
# ---> remove image manually
# curl -ueudat-artie:XXXXXXXXXX -X DELETE https://artie.ia.surfsara.nl:443/artifactory/eudat-docker-public/b2safe_${GIT_BRANCH}_${VERSION}
/home/gitlab-runner/rm_image.sh ${IMAGE_NAME_VERSION}
/home/gitlab-runner/rm_image.sh ${IMAGE_WITHOUT_VERSION}
docker push ${IMAGE_NAME}
rm -rf RPM
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment