deploy¶
Deploy a project by triggering its workflow_dispatch GitHub Actions workflow.
Usage¶
subscribed deploy # fully interactive
subscribed deploy <project> # skip project selection
subscribed deploy <project> --env <environment> # skip environment selection
subscribed deploy <project> --ref <branch> # skip branch selection
subscribed deploy <project> --ref main --env production # non-interactive
Flow¶
When arguments are omitted, the CLI prompts interactively:
- Project — select from the list (skipped if passed as argument)
- Environment — select from the project's configured environments
- Branch — fetched live from GitHub; list is filtered to
main/masteronly when deploying to production - Confirm — shows a summary before triggering
Projects¶
| Key | Name | Repo | Environments |
|---|---|---|---|
bkdk | Barberklingen DK | subscribed-aps/barberklingen-dk-bedrock | develop, master |
bkse | Barberklingen SE | subscribed-aps/barberklingen-se-bedrock | develop, master |
bknl | Barberklingen NL | subscribed-aps/barberklingen-nl-bedrock | develop, master |
kddk | Kaffedrengen DK | subscribed-aps/kaffedrengen-dk-bedrock | develop, master |
elome-bedrock | Elome - Backend (Bedrock) | subscribed-aps/elome (deploy-backend.yml) | develop, master |
elome-nuxt | Elome - Frontend (Nuxt) | subscribed-aps/elome (deploy-frontend.yml) | development, production |
Feature branches on staging¶
For the Bedrock sites the deploy workflow is always dispatched on the environment's own branch (develop or master), and the branch you pick is sent as the workflow's ref input. That is what makes the staging server check out your branch:
The confirmation shows which branch the workflow is dispatched on. A later plain develop deploy switches staging back to develop.
Enabled for all Bedrock sites (bkdk, bkse, bknl, kddk, elome-bedrock). A site must have its own deploy-bedrock.yml forward the ref input to the shared workflow, otherwise the dispatch fails with "Unexpected inputs provided" (see dispatchBranch in src/lib/projects.ts).
Elome is a monorepo: both elome-bedrock and elome-nuxt deploy from subscribed-aps/elome. elome-bedrock runs deploy-backend.yml, which pushes backend/ to the deploy mirror elome-com-bedrock and then deploys from there; it takes the same ref input, so feature branches work as for the other Bedrock sites.
Why not dispatch on the feature branch itself? GitHub reads the workflow file from the branch you dispatch on, and the shared deploy workflow then SSHes to the server and pulls whatever branch the server checkout is on. Dispatching on a feature branch therefore just redeployed develop.
Production guardrail¶
Deployments to the production environment are restricted to the main or master branch. This is enforced in two ways:
- Interactive — the branch list is filtered to only show
main/master - Non-interactive — passing
--ref feature/x --env productionexits with an error - Workflow input — the
refinput is never sent for production, so the server always deploysmaster - Pinned dispatch branch — for projects with
dispatchBranch, production only accepts that exact branch (masterfor the Bedrock sites), so the branch you confirm is the branch that gets deployed
Which environment counts as "production" is configured per project via productionEnvironment in src/lib/projects.ts.
Adding a project¶
See development docs.
Requirements¶
subscribed auth loginmust have been run with a token that hasrepoandworkflowscopes- The target workflow must have
workflow_dispatchenabled