Skip to content

ci: discover OpenVSCode web assets for GHCR image#16

Merged
tariqsaidofficial merged 1 commit into
mainfrom
wpcodespace-ghcr-web-assets-discovery-fix
Jun 17, 2026
Merged

ci: discover OpenVSCode web assets for GHCR image#16
tariqsaidofficial merged 1 commit into
mainfrom
wpcodespace-ghcr-web-assets-discovery-fix

Conversation

@tariqsaidofficial

Copy link
Copy Markdown
Member

Fixes the WPCodeSpace OpenVSCode GHCR image assembly by building/discovering the actual OpenVSCode browser web assets required by the running web server.

Problem:

  • The first published image responded over HTTP but rendered a blank page.
  • Container logs showed missing /opt/openvscode-server/out/vs/code/browser/workbench/workbench.css and /opt/openvscode-server/out/nls.messages.js.
  • Copying repository out/. was insufficient because that output had server-main.js but not packaged web client assets.

Changes:

  • Add the official vscode-web-min-ci build step.
  • Locate runtime and web asset candidates during CI.
  • Select a web asset source that actually contains workbench.css and nls.messages.js.
  • Copy the selected web assets into the Docker context.
  • Validate required assets in Docker context.
  • Validate required assets inside the built image.
  • Curl required browser assets during smoke test.
  • Fail on missing asset logs.

Preserved:

  • No pull_request trigger.
  • No latest tag.
  • Immutable tags only.
  • YAML-safe Dockerfile generation.
  • Generated bundle guard.

Local validation:

  • YAML parsed successfully.
  • No pull_request or latest match.
  • Workflow-only diff.
  • git diff --check passed.

@tariqsaidofficial tariqsaidofficial merged commit a1e2366 into main Jun 17, 2026
6 of 18 checks passed
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