Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

ci(assembler): auto-deploy on main push after successful build

Sidwebworks026e08a2c3e0
diff --git a/.github/workflows/assembler.yml b/.github/workflows/assembler.yml
index a0fbe663e0..32b7b5d78d 100644
--- a/.github/workflows/assembler.yml
+++ b/.github/workflows/assembler.yml
@@ -148,9 +148,9 @@ jobs:
ignore-unfixed: true
exit-code: "0"
- # MANUAL ONLY — gated on the explicit `deploy` dispatch input, so a main push
- # only builds the image (above); a human triggers the rollout. Runs
- # ci/src/assembler.ts, which fans out over the workspaces table (same as
+ # Deploys automatically after a successful build on a main push (matching
+ # deploy.yml's ERP/MES continuous deploy), or on dispatch with `deploy=true`.
+ # Runs ci/src/assembler.ts, which fans out over the workspaces table (same as
# deploy.yml -> ci/src/deploy.ts): each workspace with `assembler = true`
# gets the image pushed by `build` (carbon/assembler:${github.sha}) deployed
# to its own AWS account. All per-workspace config (account, region, redis,
@@ -159,7 +159,7 @@ jobs:
name: Deploy assembler
# A custom `if` replaces the implicit success() — keep the explicit result
# check so a failed image build never deploys.
- if: ${{ needs.build.result == 'success' && github.event_name == 'workflow_dispatch' && inputs.deploy }}
+ if: ${{ needs.build.result == 'success' && (github.event_name == 'push' || inputs.deploy) }}
needs: build
runs-on: ubuntu-latest
env: