Skip to content

Commit

Permalink
Remove postdown hook as it is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
CMeeg committed Nov 11, 2023
1 parent 398add7 commit 20c329f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
27 changes: 0 additions & 27 deletions .azd/hooks/postdown.ps1

This file was deleted.

5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@ When running `azd deploy`:
2. It then copies `.env.azure` and renames and overwrites the `.env.local` file with it
3. `next build` then runs, which loads in env files as normal including the `.env.local` file

When running `azd down`:

1. A `postdown` hook runs the `.azd/hooks/postdown.ps1` script
* The contents of the `.azure/{AZURE_ENV_NAME}/.env` file is "cleaned up" so that only some [well-known variables](https://github.com/Azure/azure-dev/issues/1458) are retained

### How the `.env.local` file is generated when running in a pipeline

The `.env.local` file is required to provision, build and deploy the app, but it should never be committed to your repository and so is not available to the CI/CD pipeline when it clones your repo.
Expand Down
3 changes: 0 additions & 3 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ hooks:
postprovision:
shell: pwsh
run: ./.azd/hooks/postprovision.ps1
postdown:
shell: pwsh
run: ./.azd/hooks/postdown.ps1
services:
web:
project: ./
Expand Down

0 comments on commit 20c329f

Please sign in to comment.