2021-09-08 12:14:54 +00:00
|
|
|
$env:ErrorActionPreference='Stop'
|
|
|
|
|
2020-10-24 17:56:22 +00:00
|
|
|
$env:DEFAULT_BRANCH='main'
|
2021-09-08 12:14:57 +00:00
|
|
|
$env:VERSION='test'
|
2020-06-02 08:33:47 +00:00
|
|
|
$env:tag ="registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:$env:VERSION-$env:DEFAULT_BRANCH"
|
2021-09-08 12:14:54 +00:00
|
|
|
|
|
|
|
Set-Location './docker/windows/'
|
2021-01-27 05:16:23 +00:00
|
|
|
|
|
|
|
Get-Date
|
|
|
|
Write-Output "Building $env:tag"
|
2021-09-08 12:14:54 +00:00
|
|
|
docker build --isolation=hyperv -m 12g --build-arg DEFAULT_BRANCH=$env:DEFAULT_BRANCH -f Dockerfile -t $env:tag .
|
2021-01-27 05:16:23 +00:00
|
|
|
if (!$?) {
|
|
|
|
Write-Host "Failed to build docker image $env:tag"
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Get-Date
|
|
|
|
Write-Output "Build Finished"
|