Skip to content

Fix release installer tag defaults#38

Merged
Ryson-32 merged 1 commit into
mainfrom
ryan/dev
Jun 24, 2026
Merged

Fix release installer tag defaults#38
Ryson-32 merged 1 commit into
mainfrom
ryan/dev

Conversation

@Ryson-32

Copy link
Copy Markdown
Contributor

Summary\n- infer installer asset URLs from the release asset base URL\n- pin stable release install.sh defaults to the same release tag and image tag\n\n## Validation\n- npx vitest run service/test/scripts/selfhost-oneclick.test.ts\n- git diff --check

@Ryson-32
Ryson-32 merged commit a2773dd into main Jun 24, 2026
9 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d0772be7c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

args.imageTag || (args.releaseTag ? `${args.imageRepository || DEFAULT_IMAGE_REPOSITORY}:${args.releaseTag}` : "");

if (releaseAssetBaseUrl) {
inferred.installerReleaseUrl = inferred.installerReleaseUrl || urlJoin(releaseAssetBaseUrl, "release.json");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep stable installs on the latest update channel

When the generated installer is downloaded through the normal releases/latest/download/install.sh path, this pins DEFAULT_RELEASE_URL to the concrete release tag, and local/scripts/install.sh later persists that same value into .env as SUBBOOST_RELEASE_URL; local/scripts/subboost.sh:update_cmd then fetches only that saved URL for future updates. As a result, stable installs created from the latest installer keep re-reading the original tag's release.json and subboost update cannot advance them to newer stable releases without manual env edits. Consider keeping the persisted release URL on the latest channel while pinning the fallback asset/image defaults separately.

Useful? React with 👍 / 👎.

Comment on lines +181 to +182
const releaseImageTag =
args.imageTag || (args.releaseTag ? `${args.imageRepository || DEFAULT_IMAGE_REPOSITORY}:${args.releaseTag}` : "");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the published image for inferred installer fallback

For release builds that pass an exact --image value but omit --image-tag, buildManifest() writes that exact image to release.json, while this inference builds DEFAULT_IMAGE from the repository/tag fallback instead. If the installer cannot fetch release.json and has to use DEFAULT_IMAGE, it can install ghcr.io/subboost/subboost:<tag> rather than the image actually published for that release. Derive the fallback from args.image || args.imageTag || ..., or require --image-tag whenever --image is supplied.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant