|
| 1 | + |
| 2 | +=== Validate bundle configuration |
| 3 | +>>> [CLI] bundle validate |
| 4 | +Name: app-git-source-[UNIQUE_NAME] |
| 5 | +Target: default |
| 6 | +Workspace: |
| 7 | + User: [USERNAME] |
| 8 | + Path: /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME] |
| 9 | + |
| 10 | +Validation OK! |
| 11 | + |
| 12 | +=== Plan bundle deployment |
| 13 | +>>> [CLI] bundle plan |
| 14 | +create apps.my_app |
| 15 | + |
| 16 | +Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged |
| 17 | + |
| 18 | +=== Deploy bundle |
| 19 | +>>> [CLI] bundle deploy |
| 20 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME]/files... |
| 21 | +Deploying resources... |
| 22 | +Updating deployment state... |
| 23 | +Deployment complete! |
| 24 | + |
| 25 | +=== Get app details and verify git_source configuration |
| 26 | +>>> [CLI] bundle summary --output json |
| 27 | + |
| 28 | +>>> [CLI] apps get [APP_NAME] --output json |
| 29 | +{ |
| 30 | + "name": "[APP_NAME]", |
| 31 | + "description": "App with git source", |
| 32 | + "git_repository": { |
| 33 | + "provider": "gitHub", |
| 34 | + "url": "https://github.com/databricks/cli" |
| 35 | + }, |
| 36 | + "git_source": null |
| 37 | +} |
| 38 | + |
| 39 | +=== Verify no drift after deployment |
| 40 | +>>> [CLI] bundle plan |
| 41 | +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged |
| 42 | + |
| 43 | +=== Run the app to verify it works |
| 44 | +>>> cat out.app-run |
| 45 | +✓ Getting the status of the app [APP_NAME] |
| 46 | +✓ App is in RUNNING state |
| 47 | +✓ App compute is in ACTIVE state |
| 48 | +✓ Deployment succeeded |
| 49 | +You can access the app at [APP_NAME]-123.cloud.databricksapps.com |
| 50 | + |
| 51 | +=== Update git_source branch and redeploy |
| 52 | +>>> [CLI] bundle deploy |
| 53 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME]/files... |
| 54 | +Deploying resources... |
| 55 | +Updating deployment state... |
| 56 | +Deployment complete! |
| 57 | + |
| 58 | +=== Verify config update was applied |
| 59 | +>>> [CLI] apps get [APP_NAME] --output json |
| 60 | +{ |
| 61 | + "name": "[APP_NAME]", |
| 62 | + "git_source": null |
| 63 | +} |
| 64 | + |
| 65 | +>>> [CLI] bundle destroy --auto-approve |
| 66 | +The following resources will be deleted: |
| 67 | + delete resources.apps.my_app |
| 68 | + |
| 69 | +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME] |
| 70 | + |
| 71 | +Deleting files... |
| 72 | +Destroy complete! |
0 commit comments