Skip to content

Retain managed environment after preview cleanup - #451

Merged
karpikpl merged 3 commits into
mainfrom
fix/retain-preview-managed-environment
Aug 1, 2026
Merged

karpikpl merged 3 commits into
mainfrom
fix/retain-preview-managed-environment

Conversation

@karpikpl

@karpikpl karpikpl commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • delete the preview app, PostgreSQL app, and sync job during cleanup
  • retain the shared Azure Container Apps managed environment for future previews
  • update the PR cleanup comment to describe the retained environment

Rationale

An empty consumption-based Container Apps managed environment has no ACA compute charge. Retaining it avoids repeatedly deleting and recreating the shared environment.

Validation

  • parsed .github/workflows/preview-deploy.yml successfully
  • git diff --check passed

Security

  • npm audit --audit-level=high --omit=dev reports the existing high-severity brace-expansion advisory; this workflow-only change does not alter dependencies

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1ee61678-f309-44b2-b281-54e456f7cc5d
Copilot AI review requested due to automatic review settings August 1, 2026 02:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the preview deployment GitHub Actions workflow cleanup behavior to delete only the per-preview apps/resources while retaining the shared Azure Container Apps managed environment, reducing churn and avoiding unnecessary recreate cycles.

Changes:

  • Removed the cleanup step that deleted the Azure Container Apps managed environment.
  • Updated the PR cleanup comment to state that the preview apps were removed while the shared managed environment was retained.

Comment thread .github/workflows/preview-deploy.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 1, 2026 22:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.github/workflows/preview-deploy.yml:451

  • This PR modifies a GitHub Actions workflow. Per repo guidelines, changes under .github/workflows/ should only be made with explicit approval (see .github/copilot-instructions.md:21-24). Please ensure that approval is documented (e.g., in the PR description or via an agreed maintainer sign-off) before merging.
            const body = `## 🧹 Shared Preview Apps Cleaned Up\n\n` +
              `The shared preview apps have been removed (${reason}). The shared managed environment was retained for future deployments.`;

@karpikpl
karpikpl merged commit 1b729e7 into main Aug 1, 2026
14 checks passed
@karpikpl
karpikpl deleted the fix/retain-preview-managed-environment branch August 1, 2026 22:35
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🧹 Shared Preview Apps Cleaned Up

The shared preview apps have been removed (PR was merged/closed). The shared managed environment was retained for future deployments.

This branch was previously deployed

1 inactive deployment
preview — 71bcbfd7 Deployed Aug 1, 2026 by karpikpl via cleanup #541
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants