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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
ci(assembler): split OCCT build/push, rename to Deploy Assembler, guard base
Sidwebworksc0ca2b6c4715
diff --git a/.github/workflows/assembler.yml b/.github/workflows/assembler.ymlindex b06e5d28a8..78428d93a6 100644--- a/.github/workflows/assembler.yml+++ b/.github/workflows/assembler.yml@@ -1,4 +1,4 @@-name: Assembler Image+name: Deploy Assembler# Isolated from deploy.yml so an assembler/crates change builds ONLY the# assembler image (and vice versa — erp/mes pushes never rebuild this).@@ -73,13 +73,18 @@ jobs:echo "exists=false" >> "$GITHUB_OUTPUT"fi- - name: Build and push OCCT base+ # Split build from push: the ~30 min OCCT compile is combined with `push`+ # in a single buildkit solve, so a push failure aborts before the GHA+ # cache flushes and the whole compile is lost on retry. `load: true`+ # finishes the build (and the cache-to export) into the local daemon+ # first; the separate `docker push` then can't cost the compile.+ - name: Build OCCT baseif: steps.occt-exists.outputs.exists != 'true'uses: docker/build-push-action@v5with:context: apps/assemblerfile: apps/assembler/occt.Dockerfile- push: true+ load: truetags: ${{ steps.login-ecr.outputs.registry }}/carbon/occt:8.0.0-p1cache-from: type=ghacache-to: type=gha,mode=max@@ -89,6 +94,10 @@ jobs:provenance: falsesbom: false+ - name: Push OCCT base+ if: steps.occt-exists.outputs.exists != 'true'+ run: docker push ${{ steps.login-ecr.outputs.registry }}/carbon/occt:8.0.0-p1+build:name: Build assembler image# Disabled by default: the push trigger only fires once the repo variable@@ -118,6 +127,19 @@ jobs:id: login-ecruses: aws-actions/amazon-ecr-login@v2+ # Fail fast if the immutable OCCT base isn't in ECR — the assembler image+ # links it via OCCT_IMAGE, so without it the build would die cryptically at+ # `FROM`. The base is built on demand (dispatch with build_occt_base=true),+ # not on every deploy.+ - name: Require OCCT base image+ run: |+ aws ecr describe-images --repository-name carbon/occt \+ --image-ids imageTag=8.0.0-p1 >/dev/null 2>&1 || {+ echo "carbon/occt:8.0.0-p1 is not in ECR."+ echo "Dispatch this workflow once with build_occt_base=true to build it."+ exit 1+ }+- name: Set up Docker Buildxuses: docker/setup-buildx-action@v3