From aa0c4b65fbb5cac7563fec49e90c13e708ed5ac3 Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Tue, 29 Oct 2024 18:17:35 +0100 Subject: [PATCH] add APR to updatecli manifest --- updatecli.d/01_tomcat_version.tpl | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/updatecli.d/01_tomcat_version.tpl b/updatecli.d/01_tomcat_version.tpl index 8ab3f75..37254c7 100644 --- a/updatecli.d/01_tomcat_version.tpl +++ b/updatecli.d/01_tomcat_version.tpl @@ -6,6 +6,11 @@ scms: spec: url: https://github.com/apache/tomcat-native.git branch: main + aprGitHub: + kind: git + spec: + url: https://github.com/apache/apr.git + branch: trunk sources: tomcatVersion: @@ -24,19 +29,34 @@ sources: versionfilter: kind: semver pattern: "~{{ requiredEnv "TCNATIVE_SOURCE_PATTERN" }}" + aprTag: + name: Get Apache APR library version + kind: gittag + scmid: aprGitHub + spec: + versionfilter: + kind: semver + pattern: "~{{ requiredEnv "APR_SOURCE_PATTERN" }}" targets: tomcatJson: - name: Update version in json target + name: Update Tomcat version in json target kind: json sourceid: tomcatVersion spec: file: tomcat{{ requiredEnv "TOMCAT_MAJOR" }}.json key: tomcat_version tcnativeJson: - name: Update version in json target + name: Update TCnative version in json target kind: json sourceid: tcnativeTag spec: file: tomcat{{ requiredEnv "TOMCAT_MAJOR" }}.json key: tcnative_version + aprJson: + name: Update APR version in json target + kind: json + sourceid: aprTag + spec: + file: tomcat{{ requiredEnv "TOMCAT_MAJOR" }}.json + key: apr_version