Skip to content

Commit deab07d

Browse files
Merge pull request #650 from chaudhariniraj/psl-add-acr
docs: Update deployment script and azure.yaml to run script in proper sequence
2 parents 591debf + 5e09c5c commit deab07d

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

azure.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,5 @@ metadata:
1111
name: content-processinge@1.0
1212

1313
hooks:
14-
postprovision:
15-
posix:
16-
shell: sh
17-
run: sed -i 's/\r$//' ./infra/scripts/post_deployment.sh; bash ./infra/scripts/post_deployment.sh
18-
interactive: true
19-
windows:
20-
shell: pwsh
21-
run: ./infra/scripts/post_deployment.ps1
22-
interactive: true
14+
postprovision: {}
15+

docs/DeploymentGuide.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ azd up
301301

302302
## Step 5: Post-Deployment Configuration
303303

304-
### 5.1 Run Post Deployment Script
304+
### 5.1 Run Post Deployment Scripts
305305

306-
1. You can run the ACR build and push script from the project root. Use the appropriate command for your shell:
306+
1. Run the ACR build and push script from the project root. Use the appropriate command for your shell:
307307

308308
- For Bash (Linux/macOS/WSL):
309309

@@ -317,6 +317,20 @@ azd up
317317
infra\scripts\acr_build_push.ps1
318318
```
319319

320+
2. After the ACR build and push completes, run the post-deployment script:
321+
322+
- For Bash (Linux/macOS/WSL):
323+
324+
```bash
325+
bash infra/scripts/post_deployment.sh
326+
```
327+
328+
- For PowerShell (Windows):
329+
330+
```powershell
331+
.\infra\scripts\post_deployment.ps1
332+
```
333+
320334
### 5.2 Schema Registration (Automatic)
321335

322336
> Want to customize the schemas for your own documents? [Learn more about adding your own schemas here.](./CustomizeSchemaData.md)

0 commit comments

Comments
 (0)