CI: Windows: Fix Docker tag argument inversion
authorDaniel Stone <daniels@collabora.com>
Fri, 27 Mar 2020 13:22:37 +0000 (13:22 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 27 Mar 2020 13:23:33 +0000 (13:23 +0000)
docker tag takes its arguments as source and dest, not dest and source.
Went unnoticed as the host already had a tag for my image when I was
testing.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4346>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4346>

.gitlab-ci/windows/mesa_container.ps1

index 5f960036508edc9fd3699f57274a00a157ad539f..c688451983f7b9ed8b7997fe9003d3acf6bb186e 100644 (file)
@@ -27,7 +27,7 @@ if ($?) {
 docker pull "$registry_central_image"
 if ($?) {
   Write-Host "Copying central image $registry_central_image to user image $registry_user_image"
-  docker tag "$registry_user_image" "$registry_central_image"
+  docker tag "$registry_central_image" "$registry_user_image"
   docker push "$registry_user_image"
   $pushstatus = $?
   docker logout "$registry_uri"