Skip to content

Commit

Permalink
Merge pull request #1328 from cfengine/docker-cleanup/3.21
Browse files Browse the repository at this point in the history
Improved ci/clean-build-package.sh for use on a new system (3.21)
  • Loading branch information
craigcomstock authored Oct 31, 2023
2 parents 2f86236 + bbf52d7 commit bfa8294
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ci/clean-build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ set -ex
# clean up docker stuff
name=cfengine-build-package
# TODO: a softer clean might get into the container and run ./buildscripts/build-scripts/clean-buildmachine
docker stop $name
docker rm -f $name
docker rmi -f $name
if docker ps | grep $name; then
docker stop $name
fi
if docker ps -a | grep $name; then
docker rm $name
fi
if docker images | grep $name; then
docker rmi -f $name
fi

0 comments on commit bfa8294

Please sign in to comment.