Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get_packer:
stage: get
tags:
- windows
artifacts:
paths:
- packer.exe
script:
- Write-Host "Fetching packer"
- $packerFile = "packer_" + $packerVersion + "_windows_amd64.zip"
- Invoke-WebRequest -Uri ($packerURL + "/" + $packerVersion + "/" + $packerFile) -OutFile $packerFile
- Expand-Archive $packerFile -DestinationPath .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment