mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-25 17:23:48 +01:00
Allowed to use custom branch
This commit is contained in:
parent
d55a124b1c
commit
51f62659d7
@ -27,7 +27,7 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
|
|||||||
|
|
||||||
RUN Set-Location -Path $env:SystemDrive\.; `
|
RUN Set-Location -Path $env:SystemDrive\.; `
|
||||||
`
|
`
|
||||||
$GIT_BRANCH = if ( $env:GIT_BRANCH ) { $env:GIT_BRANCH } { $env:ZBX_VERSION } `
|
$GIT_BRANCH = if ( $env:GIT_BRANCH ) { $env:GIT_BRANCH } else { $env:ZBX_VERSION }; `
|
||||||
`
|
`
|
||||||
Import-Module ('{0}\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' -f ${env:ProgramFiles(x86)} ); `
|
Import-Module ('{0}\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' -f ${env:ProgramFiles(x86)} ); `
|
||||||
Enter-VsDevShell -VsInstallPath ('{0}\Microsoft Visual Studio\2019\BuildTools' -f ${env:ProgramFiles(x86)}) -DevCmdArguments """-arch=$env:BUILD_ARCH"""; `
|
Enter-VsDevShell -VsInstallPath ('{0}\Microsoft Visual Studio\2019\BuildTools' -f ${env:ProgramFiles(x86)}) -DevCmdArguments """-arch=$env:BUILD_ARCH"""; `
|
||||||
|
@ -30,9 +30,9 @@ LABEL org.opencontainers.image.title="Zabbix agent 2 build (Windows)" `
|
|||||||
|
|
||||||
RUN Set-Location -Path $env:SystemDrive\.; `
|
RUN Set-Location -Path $env:SystemDrive\.; `
|
||||||
`
|
`
|
||||||
$GIT_BRANCH = if ( $env:GIT_BRANCH ) { $env:GIT_BRANCH } { $env:ZBX_VERSION } `
|
$GIT_BRANCH = if ( $env:GIT_BRANCH ) { $env:GIT_BRANCH } else { $env:ZBX_VERSION }; `
|
||||||
$MONGODB_PLUGIN_VERSION = if ( $env:MONGODB_PLUGIN_VERSION ) { $env:MONGODB_PLUGIN_VERSION } { $env:ZBX_VERSION } `
|
$MONGODB_PLUGIN_VERSION = if ( $env:MONGODB_PLUGIN_VERSION ) { $env:MONGODB_PLUGIN_VERSION } else { $env:ZBX_VERSION }; `
|
||||||
$POSTGRESQL_PLUGIN_VERSION = if ( $env:POSTGRESQL_PLUGIN_VERSION ) { $env:POSTGRESQL_PLUGIN_VERSION } { $env:ZBX_VERSION } `
|
$POSTGRESQL_PLUGIN_VERSION = if ( $env:POSTGRESQL_PLUGIN_VERSION ) { $env:POSTGRESQL_PLUGIN_VERSION } else { $env:ZBX_VERSION }; `
|
||||||
`
|
`
|
||||||
Import-Module ('{0}\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' -f ${env:ProgramFiles(x86)} ); `
|
Import-Module ('{0}\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' -f ${env:ProgramFiles(x86)} ); `
|
||||||
Enter-VsDevShell -VsInstallPath ('{0}\Microsoft Visual Studio\2019\BuildTools' -f ${env:ProgramFiles(x86)}) -DevCmdArguments """-arch=$env:BUILD_ARCH"""; `
|
Enter-VsDevShell -VsInstallPath ('{0}\Microsoft Visual Studio\2019\BuildTools' -f ${env:ProgramFiles(x86)}) -DevCmdArguments """-arch=$env:BUILD_ARCH"""; `
|
||||||
|
Loading…
Reference in New Issue
Block a user