mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +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.
This commit is contained in:
24
images/win/scripts/Installers/Validate-Packer.ps1
Normal file
24
images/win/scripts/Installers/Validate-Packer.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
## 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
|
||||
Reference in New Issue
Block a user