Skip to content

Commit 43560f3

Browse files
refactor: Move automation scripts to infra/scripts/
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3d0dd43 commit 43560f3

6 files changed

Lines changed: 32 additions & 32 deletions

File tree

docs/AutomatedLocalSetup.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Two scripts — one for each platform — that automate the entire local develop
44

55
| Platform | Script |
66
|---|---|
7-
| Linux / macOS / WSL / Git Bash | `scripts/setup_local_dev.sh` |
8-
| Windows PowerShell | `scripts/setup_local_dev.ps1` |
7+
| Linux / macOS / WSL / Git Bash | `infra/scripts/setup_local_dev.sh` |
8+
| Windows PowerShell | `infra/scripts/setup_local_dev.ps1` |
99

1010
---
1111

@@ -49,10 +49,10 @@ az login
4949

5050
```bash
5151
# bash (Linux / macOS / WSL / Git Bash)
52-
bash scripts/setup_local_dev.sh --resource-group <resource-group>
52+
bash infra/scripts/setup_local_dev.sh --resource-group <resource-group>
5353

5454
# PowerShell (Windows)
55-
.\scripts\setup_local_dev.ps1 -ResourceGroup <resource-group>
55+
.\infra\scripts\setup_local_dev.ps1 -ResourceGroup <resource-group>
5656
```
5757

5858
The script will:
@@ -67,7 +67,7 @@ The script will:
6767
### Bash
6868

6969
```bash
70-
bash scripts/setup_local_dev.sh [options]
70+
bash infra/scripts/setup_local_dev.sh [options]
7171

7272
Options:
7373
--resource-group, -g <name> Azure Resource Group (auto-detected from .azure/ if omitted)
@@ -80,7 +80,7 @@ Options:
8080
### PowerShell
8181
8282
```powershell
83-
.\scripts\setup_local_dev.ps1 [options]
83+
.\infra\scripts\setup_local_dev.ps1 [options]
8484

8585
Options:
8686
-ResourceGroup <name> Azure Resource Group (auto-detected from .azure/ if omitted)
@@ -95,27 +95,27 @@ Options:
9595
9696
```bash
9797
# Fetch config from Azure and set up everything
98-
bash scripts/setup_local_dev.sh --resource-group rg-macae-dev
98+
bash infra/scripts/setup_local_dev.sh --resource-group rg-macae-dev
9999

100100
# Use a specific subscription
101-
bash scripts/setup_local_dev.sh --resource-group rg-macae-dev --subscription 00000000-0000-0000-0000-000000000000
101+
bash infra/scripts/setup_local_dev.sh --resource-group rg-macae-dev --subscription 00000000-0000-0000-0000-000000000000
102102

103103
# Skip VS Code settings (e.g. using a different editor)
104-
bash scripts/setup_local_dev.sh --resource-group rg-macae-dev --skip-vscode
104+
bash infra/scripts/setup_local_dev.sh --resource-group rg-macae-dev --skip-vscode
105105

106106
# Skip prerequisite checks (useful in CI or if tools are on a non-standard PATH)
107-
bash scripts/setup_local_dev.sh --resource-group rg-macae-dev --skip-prereqs
107+
bash infra/scripts/setup_local_dev.sh --resource-group rg-macae-dev --skip-prereqs
108108
```
109109
110110
```powershell
111111
# Fetch config from Azure and set up everything
112-
.\scripts\setup_local_dev.ps1 -ResourceGroup rg-macae-dev
112+
.\infra\scripts\setup_local_dev.ps1 -ResourceGroup rg-macae-dev
113113

114114
# Use a specific subscription
115-
.\scripts\setup_local_dev.ps1 -ResourceGroup rg-macae-dev -Subscription 00000000-0000-0000-0000-000000000000
115+
.\infra\scripts\setup_local_dev.ps1 -ResourceGroup rg-macae-dev -Subscription 00000000-0000-0000-0000-000000000000
116116

117117
# Skip VS Code settings
118-
.\scripts\setup_local_dev.ps1 -ResourceGroup rg-macae-dev -SkipVSCode
118+
.\infra\scripts\setup_local_dev.ps1 -ResourceGroup rg-macae-dev -SkipVSCode
119119
```
120120
121121
---
@@ -125,8 +125,8 @@ bash scripts/setup_local_dev.sh --resource-group rg-macae-dev --skip-prereqs
125125
If you ran `azd up` to deploy, the scripts will automatically find the `.azure/<env>/.env` file and use it — no flags needed:
126126
127127
```bash
128-
bash scripts/setup_local_dev.sh # reads .azure/<env>/.env written by azd up
129-
.\scripts\setup_local_dev.ps1 # same
128+
bash infra/scripts/setup_local_dev.sh # reads .azure/<env>/.env written by azd up
129+
.\infra\scripts\setup_local_dev.ps1 # same
130130
```
131131
132132
If no `.azure/` folder exists and no `--resource-group` is provided, the script will prompt you to enter the resource group name interactively.

docs/DeployLocalChanges.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Two scripts — one for each platform — that build only the Docker images you
44

55
| Platform | Script |
66
|---|---|
7-
| Linux / macOS / WSL | `scripts/deploy_to_azure.sh` |
8-
| Windows PowerShell | `scripts/deploy_to_azure.ps1` |
7+
| Linux / macOS / WSL | `infra/scripts/deploy_to_azure.sh` |
8+
| Windows PowerShell | `infra/scripts/deploy_to_azure.ps1` |
99

1010
---
1111

@@ -41,10 +41,10 @@ az login
4141

4242
```bash
4343
# bash (Linux/macOS/WSL)
44-
bash scripts/deploy_to_azure.sh -g <resource-group>
44+
bash infra/scripts/deploy_to_azure.sh -g <resource-group>
4545

4646
# PowerShell (Windows)
47-
.\scripts\deploy_to_azure.ps1 -ResourceGroup <resource-group>
47+
.\infra\scripts\deploy_to_azure.ps1 -ResourceGroup <resource-group>
4848
```
4949

5050
The script will:
@@ -59,7 +59,7 @@ The script will:
5959
### Bash
6060

6161
```bash
62-
./scripts/deploy_to_azure.sh -g <resource-group> [options]
62+
./infra/scripts/deploy_to_azure.sh -g <resource-group> [options]
6363

6464
Required:
6565
-g, --resource-group <name> Azure Resource Group name
@@ -79,7 +79,7 @@ Options:
7979
### PowerShell
8080
8181
```powershell
82-
.\scripts\deploy_to_azure.ps1 -ResourceGroup <name> [options]
82+
.\infra\scripts\deploy_to_azure.ps1 -ResourceGroup <name> [options]
8383
8484
Required:
8585
-ResourceGroup <name> Azure Resource Group name
@@ -101,39 +101,39 @@ Options:
101101
102102
```bash
103103
# Deploy only what changed (auto-detected)
104-
bash scripts/deploy_to_azure.sh -g rg-macae-dev
104+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev
105105

106106
# Deploy only the frontend
107-
bash scripts/deploy_to_azure.sh -g rg-macae-dev --services frontend
107+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev --services frontend
108108

109109
# Deploy backend and MCP with a specific ACR
110-
bash scripts/deploy_to_azure.sh -g rg-macae-dev --services backend,mcp --acr myregistry
110+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev --services backend,mcp --acr myregistry
111111

112112
# Preview without making changes
113-
bash scripts/deploy_to_azure.sh -g rg-macae-dev --dry-run
113+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev --dry-run
114114

115115
# Build images only (no Azure update)
116-
bash scripts/deploy_to_azure.sh -g rg-macae-dev --build-only
116+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev --build-only
117117

118118
# Update Azure only (images already pushed)
119-
bash scripts/deploy_to_azure.sh -g rg-macae-dev --deploy-only --tag 20260506-120000-abc1234
119+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev --deploy-only --tag 20260506-120000-abc1234
120120

121121
# Skip AcrPull role assignment (roles already exist)
122-
bash scripts/deploy_to_azure.sh -g rg-macae-dev --skip-role-assignment
122+
bash infra/scripts/deploy_to_azure.sh -g rg-macae-dev --skip-role-assignment
123123
```
124124
125125
```powershell
126126
# Deploy only what changed
127-
.\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev
127+
.\infra\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev
128128

129129
# Deploy only backend
130-
.\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev -Services "backend"
130+
.\infra\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev -Services "backend"
131131

132132
# Dry run
133-
.\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev -DryRun
133+
.\infra\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev -DryRun
134134

135135
# Skip AcrPull role assignment (roles already exist)
136-
.\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev -SkipRoleAssignment
136+
.\infra\scripts\deploy_to_azure.ps1 -ResourceGroup rg-macae-dev -SkipRoleAssignment
137137
```
138138
139139
---

0 commit comments

Comments
 (0)