Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert Verkerk
B2SAFE Core
Commits
6923466d
Commit
6923466d
authored
Mar 30, 2021
by
Stefan Wolfsheimer
Committed by
Stefan Wolfsheimer
Mar 30, 2021
Browse files
remove verson from container removal script
parent
e9dd4a3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ci/build_container.sh
View file @
6923466d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment