Skip to content

Commit

Permalink
Move docker prune action to build script
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Morales <[email protected]>
  • Loading branch information
electrocucaracha committed Dec 7, 2021
1 parent 2c0ce5b commit 1aee8de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions integrations/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ if [[ ${*/--no-cache//} != "${*}" ]]; then
fi

docker build "${BUILD_ARGS[@]}" --build-arg VERSION="$VERSION" -t "$ORG/$IMAGE:$VERSION" .
docker image prune --force

[[ ${*/--latest//} != "${*}" ]] && {
docker tag "$ORG"/"$IMAGE":"$VERSION" "$ORG"/"$IMAGE":latest
Expand Down
1 change: 0 additions & 1 deletion integrations/docker/images/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ find "$(git rev-parse --show-toplevel)"/integrations/docker/images/ -name Docker
./build.sh "$@"
popd >/dev/null
done
docker image prune --force

0 comments on commit 1aee8de

Please sign in to comment.