[18.09] prune: move image pruning before build cache pruning Upstream-commit: 7059d069c3 Component: cli
7059d069c3