From 6d14eaee8c6f8232ea0a3a1c1853e7a54a4297ca Mon Sep 17 00:00:00 2001 From: fedor Date: Mon, 6 Jan 2025 17:36:50 -0500 Subject: [PATCH] Install recommended updates --- templates/base.pkr.hcl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/base.pkr.hcl b/templates/base.pkr.hcl index e8b8ead..5d223b5 100644 --- a/templates/base.pkr.hcl +++ b/templates/base.pkr.hcl @@ -56,6 +56,17 @@ build { "echo 'eval \"$(/opt/homebrew/bin/brew shellenv)\"' >> ~/.zprofile", "echo \"export HOMEBREW_NO_AUTO_UPDATE=1\" >> ~/.zprofile", "echo \"export HOMEBREW_NO_INSTALL_CLEANUP=1\" >> ~/.zprofile", + ] + } + + provisioner "shell" { + inline = [ + "softwareupdate --install --recommended --agree-to-license", + ] + } + + provisioner "shell" { + inline = [ "source ~/.zprofile", "brew --version", "brew update", @@ -135,12 +146,19 @@ build { script = "scripts/automationmodetool.expect" } + provisioner "shell" { + inline = [ + "softwareupdate --install --recommended --agree-to-license", + ] + } + // some other health checks provisioner "shell" { inline = [ "source ~/.zprofile", "test -d /Users/runner", "test -f ~/.ssh/known_hosts", + "brew doctor" ] } }