Loading
Point docs review app URLs at Cloudflare Workers
What does this MR do?
Docs review apps now deploy to one Cloudflare Worker per review app instead of GitLab Pages. This MR updates the review app URL in two places:
scripts/trigger-build.rb: the URL printed after triggering a docs review app. It reads theexternal_urlof the downstreamdocs-gitlab-comenvironment, so the Worker name logic stays indocs-gitlab-com. If the environment has no URL, the job fails with an error..gitlab/ci/includes/review-docs.gitlab-ci.yml: the environment URL.
Environment names did not change, so cleanup works as before.
Test in this MR:
- Review app job runs: https://gitlab.com/gitlab-org/gitlab/-/jobs/17304103170
- Returned URL is correct: https://docs-upstream-ee-263485.gitlab-marketing.workers.dev/
- The
View Appbutton in the MR also works.
Related:
- Related to Deploy MR and upstream review apps to Cloudflar... (gitlab-org/technical-writing/docs-gitlab-com!2755 - merged)
- Related to https://gitlab.com/gitlab-org/technical-writing/docs-gitlab-com/-/work_items/746+
Edited by Marcel Amirault