From 8ecd1aafb9661f7de86d9456e1127607d43baab5 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 7 Feb 2024 15:52:32 +0900 Subject: [PATCH] Trying use built-in GIT --- Dockerfiles/build-mysql/windows/Dockerfile.agent | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfiles/build-mysql/windows/Dockerfile.agent b/Dockerfiles/build-mysql/windows/Dockerfile.agent index 6bf1e53e8..61f8aca7c 100644 --- a/Dockerfiles/build-mysql/windows/Dockerfile.agent +++ b/Dockerfiles/build-mysql/windows/Dockerfile.agent @@ -25,6 +25,8 @@ LABEL org.opencontainers.image.title="Zabbix agent build (Windows)" ` SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] +ADD --keep-git-dir=true ${ZBX_SOURCES}#${GIT_BRANCH} $SystemDrive\zabbix-ZBX_VERSION + RUN Set-Location -Path $env:SystemDrive\.; ` ` Import-Module ('{0}\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' -f ${env:ProgramFiles(x86)} ); `