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: update functions in govcloud instances
Brad Barbin76fce8d6f2c7
diff --git a/.github/workflows/functions.yml b/.github/workflows/functions.ymlnew file mode 100644index 0000000000..d310d1833b--- /dev/null+++ b/.github/workflows/functions.yml@@ -0,0 +1,41 @@+name: Deploy Self-Hosted Functions++on:+ push:+ branches: [main]+ paths: ["packages/database/supabase/functions/**"]+ workflow_dispatch:++jobs:+ functions:+ name: Deploy Self-Hosted Functions+ runs-on: ubuntu-latest+ strategy:+ matrix:+ environment:+ - name: "govcloud"+ instance_host: GOVCLOUD_INSTANCE_HOST+ instance_user: ubuntu+ instance_ssh_key: GOVCLOUD_INSTANCE_SSH_KEY++ env:+ INSTANCE_HOST: ${{ secrets[matrix.environment.instance_host] }}+ INSTANCE_USER: ${{ secrets[matrix.environment.instance_user] }}+ INSTANCE_SSH_KEY: ${{ secrets[matrix.environment.instance_ssh_key] }}++ steps:+ - name: Setup SSH key+ run: |+ mkdir -p ~/.ssh+ echo "$INSTANCE_SSH_KEY" > ~/.ssh/id_rsa+ chmod 600 ~/.ssh/id_rsa+ ssh-keyscan -H $INSTANCE_HOST >> ~/.ssh/known_hosts++ - name: Deploy functions+ run: |+ ssh $INSTANCE_USER@$INSTANCE_HOST 'bash /home/ubuntu/supabase/sync-carbon-functions.sh'++ - name: Cleanup SSH key+ if: always()+ run: |+ rm -f ~/.ssh/id_rsa