Skip to content

Commit

Permalink
Specify version information in VERSIONS and use a regex manager for r…
Browse files Browse the repository at this point in the history
…enovate
  • Loading branch information
cmeister2 committed Dec 16, 2023
1 parent 35f39de commit a3074be
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
12 changes: 11 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:best-practices"
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^scripts/VERSIONS$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?_VERSION=(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}
7 changes: 7 additions & 0 deletions scripts/VERSIONS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# renovate: datasource=github-tags depName=openssl/openssl versioning=semver registryUrl=https://github.com
OPENSSL_VERSION=openssl-3.2.0

# renovate: datasource=github-tags depName=nghttp2/nghttp2 versioning=semver registryUrl=https://github.com
NGHTTP2_VERSION=v1.58.0
6 changes: 5 additions & 1 deletion scripts/download_nghttp2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
# If any commands fail, fail the script immediately.
set -ex

# Get the script directory and source the VERSIONS file
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $SCRIPT_DIR/VERSIONS

# Clone the repository to the specified directory.
git clone --branch v1.58.0 https://github.com/nghttp2/nghttp2 $1
git clone --depth 1 --branch ${NGHTTP2_VERSION} https://github.com/nghttp2/nghttp2 $1
6 changes: 5 additions & 1 deletion scripts/download_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
# If any commands fail, fail the script immediately.
set -ex

# Get the script directory and source the VERSIONS file
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $SCRIPT_DIR/VERSIONS

# Clone the repository to the specified directory.
git clone --depth 1 --branch openssl-3.2.0 https://github.com/openssl/openssl $1
git clone --depth 1 --branch ${OPENSSL_VERSION} https://github.com/openssl/openssl $1

0 comments on commit a3074be

Please sign in to comment.