Merge pull request #293 into master
c5d2a9e5repo: gitea: workflows: dfi: impl: add paths to remove (host::clean) (Aaron Fiore)56c7686erepo: gitea: workflows: dfi: impl: force remove `dfi` images (Aaron Fiore)
This commit was merged in pull request #293.
This commit is contained in:
@@ -41,9 +41,9 @@ function host::clean()
|
|||||||
|| echo "No docker-finance containers found"
|
|| echo "No docker-finance containers found"
|
||||||
|
|
||||||
# Remove all images not in use
|
# Remove all images not in use
|
||||||
local -r _images=("$(docker images -aq)")
|
local -r _images=("$(docker images -a --format=table | grep docker-finance | gawk '{print $3}' | sort -u)")
|
||||||
while read _line; do
|
while read _line; do
|
||||||
docker image rm "$_line" || continue
|
docker image rm -f "$_line" || continue
|
||||||
done < <(echo "${_images[@]}")
|
done < <(echo "${_images[@]}")
|
||||||
|
|
||||||
# Remove all leftovers
|
# Remove all leftovers
|
||||||
@@ -53,7 +53,8 @@ function host::clean()
|
|||||||
# Remove default `dfi` layout
|
# Remove default `dfi` layout
|
||||||
local _paths
|
local _paths
|
||||||
_paths+=(".bashrc")
|
_paths+=(".bashrc")
|
||||||
_paths+=(".config/docker-finance.d")
|
_paths+=(".config")
|
||||||
|
_paths+=(".docker")
|
||||||
_paths+=("docker-finance")
|
_paths+=("docker-finance")
|
||||||
_paths+=("finance-flow")
|
_paths+=("finance-flow")
|
||||||
_paths+=("plugins")
|
_paths+=("plugins")
|
||||||
|
|||||||
Reference in New Issue
Block a user