[macos] cleanup Homebrew cache after image generation (#8182)

This commit is contained in:
ilia-shipitsin
2023-08-29 15:21:37 +02:00
committed by GitHub
parent 46489c2818
commit 49ea494d52
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash -e -o pipefail
###########################################################################
# The script removes local Homebrew cache
#
###########################################################################
rm -rf "$(brew --cache)"

View File

@@ -246,6 +246,7 @@ build {
provisioner "shell" {
scripts = [
"./provision/configuration/configure-hostname.sh",
"./provision/configuration/cleanup-brew.sh",
"./provision/configuration/finalize-vm.sh"
]
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"