Skip to content

Instantly share code, notes, and snippets.

@virtualhobbit
Created November 6, 2020 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualhobbit/5dfd10c29fb5485b5e909633a252cece to your computer and use it in GitHub Desktop.
Save virtualhobbit/5dfd10c29fb5485b5e909633a252cece to your computer and use it in GitHub Desktop.
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