Skip to content

Commit ef609b7

Browse files
authored
fix: pin OpenClaw build ref to latest release tag (vignesh07#77)
1 parent 50baf84 commit ef609b7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ RUN corepack enable
2020

2121
WORKDIR /openclaw
2222

23-
# Pin to a known ref (tag/branch). If it doesn't exist, fall back to main.
24-
ARG OPENCLAW_GIT_REF=main
23+
# Pin to a known-good ref (tag/branch). Override in Railway template settings if needed.
24+
# Using a released tag avoids build breakage when `main` temporarily references unpublished packages.
25+
ARG OPENCLAW_GIT_REF=v2026.2.9
2526
RUN git clone --depth 1 --branch "${OPENCLAW_GIT_REF}" https://github.com/openclaw/openclaw.git .
2627

2728
# Patch: relax version requirements for packages that may reference unpublished versions.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Optional:
3636
- `OPENCLAW_GATEWAY_TOKEN` — if not set, the wrapper generates one (not ideal). In a template, set it using a generated secret.
3737

3838
Notes:
39-
- This template pins OpenClaw to a known-good version by default via Docker build arg `OPENCLAW_GIT_REF`.
39+
- This template pins OpenClaw to a released version by default via Docker build arg `OPENCLAW_GIT_REF` (override if you want `main`).
4040
- **Backward compatibility:** The wrapper includes a shim for `CLAWDBOT_*` environment variables (logs a deprecation warning when used). `MOLTBOT_*` variables are **not** shimmed — this repo never shipped with MOLTBOT prefixes, so no existing deployments rely on them.
4141

4242
4) Enable **Public Networking** (HTTP). Railway will assign a domain.

0 commit comments

Comments
 (0)