Skip to content

Deploy a local directory with --source (HOS-645) - #3

Merged
pavel1337 merged 1 commit into
mainfrom
feat/hos-645-upload-source
Oct 28, 2026
Merged

pavel1337 merged 1 commit into
mainfrom
feat/hos-645-upload-source

Conversation

@pavel1337

Copy link
Copy Markdown
Contributor

Adds hostim deploy <app> --source <dir>: the CLI packs the directory, uploads it through the new uploads API and the platform builds it with its Dockerfile. Also adds deploymentSource.upload.path in template files, an upload source on the MCP create_app tool and a new deploy_app_source tool.

  • The archive is deterministic (sorted paths, zero mtimes), so the same tree gives the same SHA-256 and a re-deploy skips the upload.
  • In a git work tree only the files git sees are uploaded, uncommitted changes included. .git, node_modules and .env files are always skipped; .dockerignore is applied.
  • 500 MiB cap; above it the CLI lists the biggest files.

Depends on hostimdev/backend#115 and hostimdev/operator#48. api/client.gen.go is generated from the backend branch, so the generate check fails until the backend is live.

Tested against a local backend + Kind: create, same-tree re-deploy, changed-tree re-deploy, a prebuilt binary with a 3-line Dockerfile, a template with Postgres and a volume, MCP create and re-deploy.

hostim deploy <app> --source <dir> packs the directory into a deterministic
tar.gz, uploads it through the new uploads API and builds it with its
Dockerfile. In a git work tree it uploads the files git sees, so uncommitted
changes deploy as they are. .git, node_modules and .env files are always
skipped, and .dockerignore is applied. The archive is capped at 500 MiB.

Templates accept deploymentSource.upload.path (relative to the template
file), and the MCP server gets an upload source on create_app plus a
deploy_app_source tool.

api/client.gen.go is generated from the backend branch, so the generate
check fails until the backend ships.
@pavel1337
pavel1337 marked this pull request as ready for review October 28, 2026 14:28
@pavel1337
pavel1337 merged commit 15384a9 into main Oct 28, 2026
5 of 6 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

⌂ Proxy