chore: update examples to use Alpine and improve test script

- Docker example uses Alpine for musl compatibility with 0.1.x releases
- Update test script binary path and E2B provider
- Minor example updates
This commit is contained in:
Nathan Flurry 2026-01-28 04:29:08 -08:00
parent cbd36eeca8
commit 9e9514f2e8
5 changed files with 6 additions and 7 deletions

View file

@ -78,7 +78,7 @@ async function getLatestGitVersion(): Promise<string | null> {
}
async function shouldTagAsLatest(newVersion: string): Promise<boolean> {
// Check if version has prerelease identifier (e.g., 1.0.0-rc.1)
// Check if version has prerelease identifier
const parsedVersion = semver.parse(newVersion);
if (!parsedVersion) {
throw new Error(`Invalid semantic version: ${newVersion}`);

View file

@ -286,9 +286,8 @@ async function installSandboxAgent(sandbox: Sandbox, binaryPath: string): Promis
if (binaryPath === "RELEASE") {
log.info("Installing from releases.rivet.dev...");
// Use 0.1.0-rc.1 which has install-agent command
const result = await sandbox.exec(
"curl -fsSL https://releases.rivet.dev/sandbox-agent/0.1.0-rc.1/install.sh | sh",
"curl -fsSL https://releases.rivet.dev/sandbox-agent/latest/install.sh | sh",
);
log.debug(`Install output: ${result.stdout}`);
if (result.exitCode !== 0) {