Skip to content

Commit

Permalink
add scripts/set-recommended-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Jan 16, 2025
1 parent 5b2f875 commit 6b05500
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
{
customType: "regex",
fileMatch: ["(^|/)\\.env\\.docker$"],
fileMatch: ["(^|/)\\.env\\.docker$", "(^|/)scripts/set-recommended-versions$"],
matchStrings: [
"@renovate datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?=\"?(?<currentValue>.*?)\"?\\s",
],
Expand Down
30 changes: 30 additions & 0 deletions scripts/set-recommended-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

set -e -o errexit -o nounset -o pipefail

declare project_root="${PWD}"
command -v git &>/dev/null && project_root=$(git rev-parse --show-toplevel)

# shellcheck source=lib/shared.sh
source "${project_root}/scripts/lib/shared.sh"

# @renovate datasource=docker depName=mariadb versioning=semver-coerced
DB_VERSION="11.4"

# @renovate datasource=docker depName=php versioning=semver-coerced
DOCKER_APP_PHP_VERSION="8.3"

# @renovate datasource=docker depName=redis versioning=semver-coerced
DOCKER_REDIS_VERSION="7.2"

# @renovate datasource=docker depName=nginxproxy/nginx-proxy versioning=semver-coerced
DOCKER_PROXY_VERSION="1.4"

# @renovate datasource=github-releases depName=jippi/docker-pixelfed versioning=semver-coerced
DOCKER_APP_RELEASE="v0.14"

__dottie set DB_VERSION="${DB_VERSION}"
__dottie set DOCKER_APP_PHP_VERSION="${DOCKER_APP_PHP_VERSION}"
__dottie set DOCKER_REDIS_VERSION="${DOCKER_REDIS_VERSION}"
__dottie set DOCKER_PROXY_VERSION="${DOCKER_PROXY_VERSION}"
__dottie set DOCKER_APP_RELEASE="${DOCKER_APP_RELEASE}"

0 comments on commit 6b05500

Please sign in to comment.