Skip to content

Commit

Permalink
Merge branch 'master' into sam/fix/connect-ui-defer-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel authored Oct 3, 2024
2 parents 7d3fe08 + 04c07c1 commit 76edf56
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
- runner
- persist
- orchestrator
- connect_ui

jobs:
deploy_server:
Expand Down Expand Up @@ -118,3 +119,21 @@ jobs:
echo "Deploying $IMAGE to $SERVICE_ID"
curl -sS --fail-with-body --request POST "https://api.render.com/v1/services/$SERVICE_ID/deploys" --header "authorization: Bearer ${{ secrets.RENDER_API_KEY }}" --data "{ \"imageUrl\": \"$IMAGE\" }"
deploy_connect_ui:
if: inputs.service == 'connect_ui'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Deploy connect
run: |
SERVICE_ID=${{ fromJson('{ "production": "srv-crtut51u0jms73bts8fg", "staging": "srv-cmj6t6da73kc739ol660" }')[inputs.stage] }}
COMMIT="${{ github.sha }}"
echo "Deploying $COMMIT to $SERVICE_ID"
curl -sS --fail-with-body --request POST "https://api.render.com/v1/services/$SERVICE_ID/deploys" --header "authorization: Bearer ${{ secrets.RENDER_API_KEY }}" --data "{ \"commitId\": \"$COMMIT\" }"
7 changes: 6 additions & 1 deletion packages/shared/lib/services/sync/config/deploy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,12 @@ export async function upgradePreBuilt({
created_at: now,
updated_at: now,
version: flow.version!,
model_schema: JSON.stringify(flow.models) as any
file_location,
model_schema: JSON.stringify(flow.models) as any,
metadata: flow.metadata || {},
auto_start: flow.auto_start === true,
track_deletes: flow.track_deletes === true,
models: flow.returns
};
delete flowData.id;

Expand Down

0 comments on commit 76edf56

Please sign in to comment.