mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
8f0481f19a
Check the exit codes of various commands and fail appropriatly upon error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/392>
22 lines
No EOL
545 B
PowerShell
22 lines
No EOL
545 B
PowerShell
$env:DEFAULT_BRANCH='master'
|
|
$env:VERSION='v18'
|
|
$env:tag ="registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:$env:VERSION-$env:DEFAULT_BRANCH"
|
|
|
|
Get-Date
|
|
Write-Output "Building $env:tag"
|
|
docker build --build-arg DEFAULT_BRANCH=$env:DEFAULT_BRANCH -f Dockerfile -t $env:tag .
|
|
if (!$?) {
|
|
Write-Host "Failed to build docker image $env:tag"
|
|
Exit 1
|
|
}
|
|
|
|
# Get-Date
|
|
# Write-Output "Pushing $env:tag"
|
|
# docker push $env:tag
|
|
# if (!$?) {
|
|
# Write-Host "Failed to push docker image $env:tag"
|
|
# Exit 1
|
|
# }
|
|
|
|
Get-Date
|
|
Write-Output "Build Finished" |