Skip to content

Refactor CI/CD workflows for Next.js deployment to Cloudflare Workers#5

Merged
omarghatasheh merged 1 commit into
mainfrom
omarg
Oct 22, 2025
Merged

Refactor CI/CD workflows for Next.js deployment to Cloudflare Workers#5
omarghatasheh merged 1 commit into
mainfrom
omarg

Conversation

@omarghatasheh

Copy link
Copy Markdown
Contributor
  • Removed setup action for Cloudflare Pages and replaced it with setup for Cloudflare Workers.
  • Introduced new actions for setting up Next.js for Workers and configuring Wrangler CLI.
  • Updated the main CI workflow to accommodate changes for deploying to Workers instead of Pages.
  • Modified input parameters to reflect the new deployment target and requirements.
  • Removed obsolete verification action for Cloudflare build output.
  • Updated documentation to reflect changes in deployment strategy and configuration for Workers.
  • Enhanced README and usage guides to clarify the transition from Pages to Workers.

- Removed setup action for Cloudflare Pages and replaced it with setup for Cloudflare Workers.
- Introduced new actions for setting up Next.js for Workers and configuring Wrangler CLI.
- Updated the main CI workflow to accommodate changes for deploying to Workers instead of Pages.
- Modified input parameters to reflect the new deployment target and requirements.
- Removed obsolete verification action for Cloudflare build output.
- Updated documentation to reflect changes in deployment strategy and configuration for Workers.
- Enhanced README and usage guides to clarify the transition from Pages to Workers.
@omarghatasheh omarghatasheh merged commit da7f23e into main Oct 22, 2025
1 check passed
@omarghatasheh omarghatasheh deleted the omarg branch October 22, 2025 15:03
MusaMisto added a commit that referenced this pull request Jun 14, 2026
…pin kubectl

#5 kubeconfig handling:
- Write the decoded kubeconfig to $RUNNER_TEMP instead of the workspace, so the
  credential is no longer left in the checked-out tree, and add an `if: always()`
  cleanup step that removes it (matters on self-hosted/reused runners).
- Adopt the generic-gateway-helm-template workflow's decoder (base64 with raw
  fallback) and add a fail-fast apiVersion validation. Behavior-preserving for the
  two real input forms (base64 secret, raw YAML) — both decode to a semantically
  identical kubeconfig — and now rejects malformed input with a clear message
  instead of letting Helm fail later.

#6:
- Remove `actions/checkout@v6`: the deploy job uses no repo files (chart comes
  from chart_repo, image from the registry); the only workspace reference was the
  old kubeconfig path, now in RUNNER_TEMP. Updated the chart/chart_repo input docs
  to note local chart paths are not supported.
- Pin kubectl to v1.34.0 instead of 'latest' for reproducibility (only basic
  core-resource ops are used, so cluster skew is not a concern; documented as
  bumpable to track the cluster's minor version).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant