mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* create packer.sh deployment file Copy from terraform.sh * add packer.sh to provisioner add packer.sh script to provisioner to install packer. * add packer.sh to provisioner Add packer.sh script to provisioner to install packer * remove blank lines removed blank lines as requested in feedback by alepauly. * remove additional blank lines * Add Install-Packer.ps1 This script installs packer on Windows through chocolatey * Create Validate-Packer.ps1 This script validates the installation of Packer from Install-Packer.ps1 and adds the software details to the markdown files. * Add Packer install and validate script Added Packer install script and validate script to provisioners. * Add Packer install script and validation script Add Packer install and validation script to provisioners.
25 lines
624 B
PowerShell
25 lines
624 B
PowerShell
################################################################################
|
|
## File: Validate-Packer.ps1
|
|
## Desc: Validate Packer
|
|
################################################################################
|
|
|
|
if (Get-Command -Name 'packer')
|
|
{
|
|
Write-Host "Packer is on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host 'Packer is not on path'
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "Packer"
|
|
$PackerVersion = (packer version).Split("")
|
|
|
|
$Description = @"
|
|
_Version:_ $PackerVersion.Item(1)<br/>
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|