The Modern FTP: Instant Deploys to Cloud Run

What's the modern equivalent of FTPing your files to your server? Copying them to Cloud Storage and have Cloud Run load the app straight from the bucket.
I prototyped it today.
The Idea
The idea is to load your app straight from Cloud Storage, instead of packaging it in the deployed container image. The Cloud Run service is configured to use one of Cloud Run's official Node.js base image and it mounts the Cloud Storage bucket in the location where it expects the app to be.
Deployments are instant (since you skip building your repo into a container image).
How it works
- A generic, pre-built Cloud Run runtime image (e.g., the Node.js runtime) is used.
- Your application source code is uploaded to a Cloud Storage bucket.
- The Cloud Run service is configured to mount the Cloud Storage bucket as a volume at the location where the runtime expects the application files (e.g.
/usr/src/app
).
With this setup, "deploying" is as simple as updating the files in the Cloud Storage bucket. The changes are reflected instantly without needing to build and deploy a new container image.
Check it out!
Source code: github.com/steren/cloud-run-instant-deploy