fix version updates
All checks were successful
CI/CD Pipeline / test (push) Successful in 3s
CI/CD Pipeline / deploy (push) Successful in 20s
CI/CD Pipeline / promote_stable (push) Successful in 2s

This commit is contained in:
2026-02-13 18:28:18 +01:00
parent 40e111b3a6
commit 1f5f340ce4
2 changed files with 10 additions and 1 deletions

View File

@@ -98,5 +98,5 @@
"minimum-stability": "stable", "minimum-stability": "stable",
"prefer-stable": true, "prefer-stable": true,
"version": "26.0.2", "version": "26.0.2",
"build": "68" "build": "69"
} }

View File

@@ -85,6 +85,7 @@ $PHP_BIN artisan migrate --force
echo "Syncing version/build to settings..." echo "Syncing version/build to settings..."
VERSION="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["version"] ?? "";')" VERSION="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["version"] ?? "";')"
BUILD="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["build"] ?? "";')" BUILD="$($PHP_BIN -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["build"] ?? "";')"
echo "Computed from composer.json: VERSION=$VERSION, BUILD=$BUILD"
if [[ -n "$VERSION" || -n "$BUILD" ]]; then if [[ -n "$VERSION" || -n "$BUILD" ]]; then
echo "Updating settings version/build (VERSION=$VERSION, BUILD=$BUILD)..." echo "Updating settings version/build (VERSION=$VERSION, BUILD=$BUILD)..."
@@ -101,6 +102,14 @@ if [[ -n "$VERSION" || -n "$BUILD" ]]; then
' \ ' \
SPEEDBB_VERSION="$VERSION" \ SPEEDBB_VERSION="$VERSION" \
SPEEDBB_BUILD="$BUILD" SPEEDBB_BUILD="$BUILD"
$PHP_BIN -r '
require "vendor/autoload.php";
$app = require "bootstrap/app.php";
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$version = \App\Models\Setting::where("key", "version")->value("value");
$build = \App\Models\Setting::where("key", "build")->value("value");
echo "Settings now: version={$version}, build={$build}\n";
'
fi fi
echo "Update complete." echo "Update complete."