mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
feat(release): add release.json and upstream.json
- config/constants.php reads the Coolify and helper versions from them - The image and sync-cdn.sh write versions.json from upstream.json, install.sh reads it by key
This commit is contained in:
+2
-2
@@ -519,8 +519,8 @@ fi
|
||||
|
||||
# Fetch versions.json once and parse all values from it
|
||||
VERSIONS_JSON=$(curl -L --silent $CDN/versions.json)
|
||||
LATEST_VERSION=$(echo "$VERSIONS_JSON" | grep -i version | xargs | awk '{print $2}' | tr -d ',')
|
||||
LATEST_HELPER_VERSION=$(echo "$VERSIONS_JSON" | grep -i version | xargs | awk '{print $6}' | tr -d ',')
|
||||
LATEST_VERSION=$(echo "$VERSIONS_JSON" | sed -n '/"v4"/,/}/s/.*"version": *"\([^"]*\)".*/\1/p' | head -n 1)
|
||||
LATEST_HELPER_VERSION=$(echo "$VERSIONS_JSON" | sed -n '/"helper"/,/}/s/.*"version": *"\([^"]*\)".*/\1/p' | head -n 1)
|
||||
|
||||
if [ -z "$LATEST_HELPER_VERSION" ]; then
|
||||
LATEST_HELPER_VERSION=latest
|
||||
|
||||
+2
-2
@@ -51,8 +51,8 @@ select_channel() {
|
||||
}
|
||||
|
||||
write_versions() {
|
||||
jq --indent 4 --arg version "$VERSION" '.coolify.v4.version = $version' versions.json > "$WORK_DIR/versions.json"
|
||||
ok "versions.json names Coolify $VERSION and the helper, Sentinel and Traefik versions of this commit"
|
||||
jq --indent 4 --arg version "$VERSION" '{coolify: ({v4: {$version}} + del(.traefik)), traefik}' upstream.json > "$WORK_DIR/versions.json"
|
||||
ok "versions.json names Coolify $VERSION and the helper, Sentinel and Traefik versions of upstream.json"
|
||||
}
|
||||
|
||||
fetch_releases() {
|
||||
|
||||
Reference in New Issue
Block a user