Skip to content
Snippets Groups Projects
Commit 1f40893b authored by John Harris's avatar John Harris
Browse files

fix: remove tool containers after running

parent 74975bb2
No related branches found
No related tags found
No related merge requests found
Pipeline #45288 passed
......@@ -63,17 +63,17 @@ case "$1" in
shift
CQ_IMAGE=registry.nexusmods.com/nexus-mods/devops/tools/nexus-code-quality:stable
docker pull $CQ_IMAGE
docker run -v "$PWD":/app/mounted $CQ_IMAGE "$@"
docker run --rm -v "$PWD":/app/mounted $CQ_IMAGE "$@"
;;
gu|gemfile-updater)
shift
GU_IMAGE=registry.nexusmods.com/nexus-mods/devops/tools/base-image-gemfile-updater:stable
docker pull $GU_IMAGE
docker run -it -v "$(pwd)":/app -v /usr/local/bundle:/usr/local/bundle $GU_IMAGE "$@"
docker run --rm -it -v "$(pwd)":/app -v /usr/local/bundle:/usr/local/bundle $GU_IMAGE "$@"
;;
bu|bundle-update)
shift
docker run -it -v "$(pwd)":/app -v /usr/local/bundle:/usr/local/bundle gitlab.nexdev.uk:5555/pub/bundle-updater:v1.0.7 "$@"
docker run --rm -it -v "$(pwd)":/app -v /usr/local/bundle:/usr/local/bundle gitlab.nexdev.uk:5555/pub/bundle-updater:v1.0.7 "$@"
echo "Container now must be rebuilt!"
;;
-v|version)
......
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