webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
356 stars 95 forks source link

Deploy previews to cloud run when PR opened #1395

Closed aomarks closed 1 year ago

aomarks commented 1 year ago

Follow up to https://github.com/webcomponents/webcomponents.org/pull/1394

Pretty much the same as the deploy-main.yaml config, but doesn't update routing, and only allows up to 1 instance.

This is very similar to what we do on lit.dev, except this time I'm not including the SHA, so instead of getting a new preview URL for every commit, the same URL is updated on each commit instead.

Includes a GitHub Action which posts a comment to the PR with the URL.

Part of https://github.com/webcomponents/webcomponents.org/issues/1340 Part of https://github.com/webcomponents/webcomponents.org/issues/1339

github-actions[bot] commented 1 year ago

A live preview of this PR will be available at the URL below and will update on each commit. The build takes ~5-10 minutes, and will 404 until finished.

https://pr1395---site-khswqo4xea-wl.a.run.app/

Warning Until our Cloud Run project is public, only authorized users can view the above URL. The easiest way to view it authenticated is to run the following proxy command and visit http://localhost:5453

(gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1395 --port=5453 site \
& gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1395 --port=6453 catalog)