From 1b75131e9e9a38c430f47a50489aef1d2b6f9d6f Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 12 Jun 2019 17:58:45 +0300 Subject: [PATCH 1/2] Fixed SVN -> GIT --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 431ce7bd7..321d1d4d8 100755 --- a/build.sh +++ b/build.sh @@ -29,7 +29,7 @@ if [[ ! $version =~ ^[0-9]*\.[0-9]*\.[0-9]*$ ]] && [ "$version" != "latest" ]; t fi if [ "$version" != "latest" ]; then - VCS_REF=`svn info svn://svn.zabbix.com/tags/$version |grep "Last Changed Rev"|awk '{print $4;}'` + VCS_REF=`git ls-remote https://git.zabbix.com/scm/zbx/zabbix.git refs/tags/4.2.3 | cut -c1-10` else MAJOR_VERSION=`cat Dockerfile | grep "ARG MAJOR_VERSION" | head -n1 | cut -f2 -d"="` MINOR_VERSION=`cat Dockerfile | grep "ARG ZBX_VERSION" | head -n1 | cut -f2 -d"."` From a6fe60b47a30301d7e3387a8652a14224ea0e924 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 12 Jun 2019 18:00:18 +0300 Subject: [PATCH 2/2] Fixed SVN -> GIT --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 321d1d4d8..e16468bb0 100755 --- a/build.sh +++ b/build.sh @@ -29,7 +29,7 @@ if [[ ! $version =~ ^[0-9]*\.[0-9]*\.[0-9]*$ ]] && [ "$version" != "latest" ]; t fi if [ "$version" != "latest" ]; then - VCS_REF=`git ls-remote https://git.zabbix.com/scm/zbx/zabbix.git refs/tags/4.2.3 | cut -c1-10` + VCS_REF=`git ls-remote https://git.zabbix.com/scm/zbx/zabbix.git refs/tags/$version | cut -c1-10` else MAJOR_VERSION=`cat Dockerfile | grep "ARG MAJOR_VERSION" | head -n1 | cut -f2 -d"="` MINOR_VERSION=`cat Dockerfile | grep "ARG ZBX_VERSION" | head -n1 | cut -f2 -d"."`