Deploy from GitHub
Connect a repository, choose a branch, tag or commit and deploy it.
Deploy a specific branch, tag or commit from a connected repository. You choose when to deploy from the dashboard or CLI. If your repository is already connected, skip to deploy a branch, tag or commit.
Connect GitHub as the owner
- On GitHub, create a new private GitHub App. Use your workspace URL as its homepage and turn webhooks off.
- Under permissions, set Contents to read-only and leave Metadata read-only. It needs nothing else, and no callback URL.
- Install the app on your account or organisation and choose Only select repositories.
- In Smolcloud, open Settings → GitHub access. Enter the App ID and the installation ID, and upload the private key file GitHub gave you.
- Choose Check and save GitHub. Smolcloud confirms it can read the repositories before saving.
- For each app, open Overview → Deploy an update → GitHub and connect the repository it deploys from.
Deploy a branch, tag or commit
When creating an app, choose GitHub repository, select the repository, then
choose Browse branches. Type in Branch, tag or commit to filter the loaded
branches, or enter a tag or commit directly. Choose Load more branches when
there are more results. You are not limited to main.
For an existing app, open Overview → Deploy an update → GitHub, enter the ref and choose Deploy. From your terminal:
smolcloud deploy-github APP_ID BRANCH_TAG_OR_COMMIT
smolcloud resume APP_ID DEPLOYMENT_ID
You need Can deploy on the app. resume picks the wait back up if your terminal disconnects. The deployment history shows the branch or tag you asked for and the exact commit that was deployed. If the repository contains innie-resources.json, the deployment waits for the owner's approval; see resource declarations.
Change access
- To replace the private key, choose Edit connection, then check the repository list is still right.
- Disconnect GitHub deletes the saved key and stops any GitHub deployment in progress. Apps that are already live keep running.
- After reconnecting, or after changing the GitHub App, approve each app's repository again.
A code rollback redeploys code Smolcloud already has. It doesn't need GitHub and doesn't bring back an old key or repository choice.
Limits
- Up to 20 repositories.
- Repository source: up to 32 MiB compressed, 128 MiB unpacked.
- The app must be at the repository root. Subfolders, submodules and Git LFS aren't supported.
- Pushing a commit to GitHub does not trigger a deploy. Smolcloud has read-only repository access.