Skip to content

Move review apps from custom server to GCP buckets

The review apps server is a cheap VPS in GCP with only 100gb of storage. I'm using my personal dev account using sandbox. The server uses the runner's shell executor and rsync to sync the built HTML files to a new directory that is served by NGINX.

We should move to GCP buckets like we have done with the marketing site.

We would need a server that has the NGINX configuration needed to redirect to the review apps.

For the infrastructure team:

  1. Set up a GCS bucket for serving gitlab-docs Review Apps https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/10791
  2. Set up Fastly VCLs https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/11021
  3. Set a wildcard DNS record for *.docs.gitlab-review.app to point to the IP address of the NGINX server.
  4. Create wildcard TLS certificate for *.docs.gitlab-review.app.

For us:

  1. Copy the deploy and review-replace-urls scripts under gitlab-docs.
  2. Set up .gitlab-ci.yml to use GCP buckets and deploy scripts.
  3. Update documentation gitlab!103205 (merged)

Relevant issues/MRs

Edited by Achilleas Pipinellis