feat(containers): deploy from GitHub — connect a repo, redeploy on every push #7

Merged
thelion merged 1 commit from feat/github-deploys into main 2026-11-06 13:19:12 +00:00
Owner

Needs ircforever/shells-config's git-deploy (shellsd) deployed first, and the updated unit on shells-host.

  • Connect GitHub: installs the "4evr.sh Shells" GitHub App on the repos the user picks. GitHub's OAuth step during the install proves which installations are theirs (state-checked callback).
  • Deploy: repo + branch + folder; shellsd clones into ~/apps/ with a one-hour installation token and starts it with compose. A Dockerfile-only repo gets a port and an optional web address.
  • Push webhook (signature-verified) redeploys. Pushes during a run queue one more run.
  • Each deploy keeps its last 15 runs with output in StateDirectory (github.json). Projects deployed from GitHub are tagged on the Containers page.
  • Unit: adds StateDirectory=shells-dashboard and LoadCredential=github-app.pem (the key stays root-only). A missing or wrong GitHub config turns the feature off rather than stopping the portal.
  • Tests: Go tests for the connect flow, ownership, webhook signatures, queueing, JWT and the store; 6 new e2e tests against a fake GitHub. 172/172 e2e pass.

🤖 Generated with Claude Code

Needs ircforever/shells-config's git-deploy (shellsd) deployed first, and the updated unit on shells-host. - **Connect GitHub:** installs the "4evr.sh Shells" GitHub App on the repos the user picks. GitHub's OAuth step during the install proves which installations are theirs (state-checked callback). - **Deploy:** repo + branch + folder; shellsd clones into ~/apps/<name> with a one-hour installation token and starts it with compose. A Dockerfile-only repo gets a port and an optional web address. - **Push webhook** (signature-verified) redeploys. Pushes during a run queue one more run. - **Each deploy** keeps its last 15 runs with output in `StateDirectory` (github.json). Projects deployed from GitHub are tagged on the Containers page. - **Unit:** adds `StateDirectory=shells-dashboard` and `LoadCredential=github-app.pem` (the key stays root-only). A missing or wrong GitHub config turns the feature off rather than stopping the portal. - **Tests:** Go tests for the connect flow, ownership, webhook signatures, queueing, JWT and the store; 6 new e2e tests against a fake GitHub. 172/172 e2e pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(containers): deploy from GitHub — connect a repo, redeploy on every push
Some checks failed
CI / test (pull_request) Successful in 13m19s
CI / release (pull_request) Failing after 0s
eca3f2cb3e
The portal's GitHub App (4evr.sh Shells): users install it on the repos they
pick, and the OAuth step GitHub runs during install proves which
installations are theirs. A deploy clones a repo branch into ~/apps/<name>
through shellsd's git-deploy with a one-hour read token, starts it with
compose (or a generated one for a Dockerfile-only repo, with an optional web
address), and the App's push webhook redeploys it. Each deploy keeps its
last 15 runs with their output, in the unit's StateDirectory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ircforever/shells-dashboard!7
No description provided.