[macos] cleanup Homebrew cache after image generation (#8182)
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash -e -o pipefail
|
||||||
|
###########################################################################
|
||||||
|
# The script removes local Homebrew cache
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
rm -rf "$(brew --cache)"
|
||||||
@@ -246,6 +246,7 @@ build {
|
|||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
scripts = [
|
scripts = [
|
||||||
"./provision/configuration/configure-hostname.sh",
|
"./provision/configuration/configure-hostname.sh",
|
||||||
|
"./provision/configuration/cleanup-brew.sh",
|
||||||
"./provision/configuration/finalize-vm.sh"
|
"./provision/configuration/finalize-vm.sh"
|
||||||
]
|
]
|
||||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user