You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DeployLocalChanges.md
+24-44Lines changed: 24 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Deploy Local Changes to Azure
2
2
3
-
Two scripts — one for each platform — that build only the Docker images you changed, push them to ACR, and update the live Azure resources.
3
+
Two scripts — one for each platform — that build Docker images for the services you specify (or all by default), push them to ACR, and update the live Azure resources.
4
4
5
5
| Platform | Script |
6
6
|---|---|
@@ -11,11 +11,10 @@ Two scripts — one for each platform — that build only the Docker images you
1.**Checks prerequisites** — Azure CLI and Docker (both required)
30
29
2.**Discovers Azure resources** — finds the backend/MCP Container Apps and frontend App Service in your resource group
31
30
3.**Resolves ACR** — lists ACRs in the resource group and asks which one to use; prompts to create a new one if needed
32
-
4.**Detects changed services** — uses `git diff` to find which of `src/backend/`, `src/mcp_server/`, `src/App/` have changed; only those services are built and deployed
33
-
5.**Generates an image tag** — auto-generates `YYYYMMDD-HHMMSS-<git-sha>` or uses your custom tag
34
-
6.**Builds & pushes images** — `docker build` + `docker push` to ACR for each changed service
31
+
4.**Determines services** — deploys all services by default, or only the ones you specify with `--services`
32
+
5.**Generates an image tag** — auto-generates `YYYYMMDD-HHMMSS` or uses your custom tag
33
+
6.**Builds & pushes images** — builds locally with Docker, pushes to ACR
35
34
7.**Updates Azure resources** — updates the Container App / App Service to the new image tag
When `--services` is not specified, the script runs `git diff` to determine what to build:
144
-
145
-
| Files changed in| Service built |
146
-
|---|---|
147
-
|`src/backend/`| backend |
148
-
|`src/mcp_server/`| mcp |
149
-
|`src/App/`| frontend |
150
-
151
-
It checks only **uncommitted changes** (staged and unstaged vs the last commit, i.e. `git diff HEAD`). Commits that are already committed but not yet pushed are intentionally excluded to avoid false positives from unrelated branch work.
152
-
153
-
If no changes are detected in any service directory, the script asks:
154
-
```
155
-
No changes detected. Deploy all services anyway? [y/N]:
156
-
```
157
-
158
-
---
159
-
160
140
## ACR Selection
161
141
162
142
If `--acr` / `-Acr` is not provided, the script **always prompts first**:
0 commit comments