feat: add runAsHostUserReuseExisting input (#870)

Forwards a new opt-in input to game-ci/cli's --runAsHostUserReuseExisting
(game-ci/cli#330). With runAsHostUser, it reuses a group/user the image
already has at the host GID/UID instead of failing to create it - e.g. the
ubuntu user/group at 1000 in Ubuntu 24.04 based unityci/editor v4 images.

The flag is only passed when the input is true, so existing workflows
send the CLI exactly the same arguments.

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Andy Shinn
2026-11-27 21:32:49 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 107e018f9d
commit 188fd69ab7
5 changed files with 22 additions and 9 deletions
Generated Vendored
+5 -4
View File
@@ -67,6 +67,7 @@ const BOOLEAN_FLAGS = [
['enableGpu', 'enableGpu'],
['useHostNetwork', 'useHostNetwork'],
['runAsHostUser', 'runAsHostUser'],
['runAsHostUserReuseExisting', 'runAsHostUserReuseExisting'],
['allowDirtyBuild', 'allowDirtyBuild'],
['cacheUnityInstallationOnMac', 'cacheUnityInstallationOnMac'],
['skipActivation', 'skipActivation'],
@@ -148,10 +149,10 @@ const ORCHESTRATE_BOOLEAN_FLAGS = [
// enableGpu: not assigned anywhere in build-parameters-adapter.ts or the
// orchestrator model - a real, currently-unfilled gap versus `build`'s
// GPU passthrough, not something to silently pretend to support.
// useHostNetwork/runAsHostUser: Docker networking/uid-mapping concepts;
// not assigned by the adapter, and runAsHostUser is meaningless by
// construction on a bare host process that already runs as that host
// user.
// useHostNetwork/runAsHostUser/runAsHostUserReuseExisting: Docker
// networking/uid-mapping concepts; not assigned by the adapter, and
// runAsHostUser is meaningless by construction on a bare host process
// that already runs as that host user.
// cacheUnityInstallationOnMac: build-parameters-adapter.ts DOES assign
// bp.cacheUnityInstallationOnMac, but nothing downstream (no provider,
// no workflow) ever reads it back - it's a currently-dead field for
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long