Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconfigure Renovate to upgrade custom dependencies automatically #87

Merged
merged 2 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:base"
"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