Skip to content

fix packed UI and run release on one runner - #74

Merged
jkandasa merged 1 commit into
mycontroller-org:mainfrom
jkandasa:collapse-release-to-one-job
Sep 18, 2026
Merged

jkandasa merged 1 commit into
mycontroller-org:mainfrom
jkandasa:collapse-release-to-one-job

Conversation

@jkandasa

Copy link
Copy Markdown
Member

Summary

The development binary served the Vite source page (<script type=\"module\" src=\"/src/index.js\">) instead of the production bundle. After checkout, web-console/index.html already exists; the artifact flatten treated that as a misplaced build and moved the source tree over web-console/build. Pack then embedded that mix.

This change:

  • Runs console build, Go binaries, GitHub release, and image push on one runner (no upload/download artifacts). That removes the mix-up and the Node 20 artifact-action warnings.
  • Makes pack_web_console fail if build/index.html still references /src/index.js.
  • Still pushes GHCR always; Quay/Docker Hub only from mycontroller-org/server.
  • Still force-updates the development tag to ${{ github.sha }}.

After merge, on a machine that already ran the bad binary: clear web.web_directory (or do not point it at the repo web-console/), delete {data}/internal/web_console, and restart with the new build.

Test plan

  • Next main release run is a single Release job and stays green.
  • Downloaded server serves hashed /assets/index-*.js, not /src/index.js.
  • development tag SHA matches the merge commit.
  • Forks do not log in to Quay/Docker Hub.

Split jobs only existed to pass artifacts between VMs. That
overwrite web-console/build with the Vite source index.html
and shipped a binary whose UI never loaded. Build, pack,
release, and push images on the same host. Fail pack if
index.html still points at /src/index.js.
@jkandasa
jkandasa merged commit 31869e1 into mycontroller-org:main Sep 18, 2026
@jkandasa
jkandasa deleted the collapse-release-to-one-job branch September 18, 2026 02:23
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