Skip to content

Add PR preview cleanup workflow for frontend#226

Open
lmcdonough wants to merge 4 commits intomainfrom
225-feature-create-github-actions-workflows-for-preview-environments-on-pull-requests
Open

Add PR preview cleanup workflow for frontend#226
lmcdonough wants to merge 4 commits intomainfrom
225-feature-create-github-actions-workflows-for-preview-environments-on-pull-requests

Conversation

@lmcdonough
Copy link
Collaborator

Implements automated cleanup for PR preview environments. Triggers on pull_request closed event and calls backend reusable workflow.

@lmcdonough lmcdonough force-pushed the 225-feature-create-github-actions-workflows-for-preview-environments-on-pull-requests branch from 7358c12 to f4df06d Compare December 29, 2025 23:13
lmcdonough and others added 4 commits February 7, 2026 20:31
Add GitHub Actions workflows for deploying and cleaning up frontend PR
preview environments. The deployment workflow calls the backend repo's
reusable ci-deploy-pr-preview workflow with frontend-specific configuration.

Infrastructure changes:
- Dockerfile: redeclare build ARGs in builder/runner stages for proper
  NEXT_PUBLIC_* propagation, add NEXT_PUBLIC_BASE_PATH support
- next.config.mjs: add basePath support for sub-path PR preview routing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- docs/cicd/README.md: CI/CD pipeline overview and workflow architecture
- docs/runbooks/pr-preview-environments.md: operational runbook for PR
  preview environments including troubleshooting and secret management
- README.md: add CI/CD documentation section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add extensionsCreatedRef to prevent TipTap extensions from being created
multiple times during React re-renders.

Housekeeping:
- .gitignore: add Snyk rules
- .vscode/settings.json: remove from tracking (already in .gitignore)
- package-lock.json: dependency updates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document PR preview architecture, Docker ARG scoping requirements,
NEXT_PUBLIC_BASE_PATH usage, and the secrets: inherit pitfall where
stale repo-level secrets override workflow fallback defaults.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lmcdonough lmcdonough force-pushed the 225-feature-create-github-actions-workflows-for-preview-environments-on-pull-requests branch from 96e0acb to 9312de1 Compare February 8, 2026 01:37
@github-actions
Copy link

github-actions bot commented Feb 8, 2026

🚀 PR Preview Environment Deployed!

🔗 Access URLs

Service URL
Frontend http://neo/pr-226/
Backend API http://neo/pr-226/api
Health Check http://neo/pr-226/health
Base Path /pr-226/

📊 Environment Details

🔐 Access Requirements

  1. Connect to Tailscale (required)
  2. Access via NGINX ingress at: http://neo/pr-226/

🧪 Testing

# Health check
curl http://neo/pr-226/health

# Frontend
curl http://neo/pr-226/

# API test
curl http://neo/pr-226/api/v1/users

🧹 Cleanup

Environment auto-cleaned when PR closes/merges


Deployed: 2026-02-08T01:55:12.920Z
Architecture: Native ARM64 build on Neo + Multi-tier caching

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.

[Feature]: Create GitHub Actions Workflows for Preview Environments on Pull Requests

1 participant