Nx plugin to use Cloud Storage as remote cache.
- Use Google Cloud Storage as Nx remote cache
- Automatic authentication via Google Cloud credentials
- Compatible with Nx's caching infrastructure
- Drop-in replacement for default Nx cache
- Google Cloud project with Cloud Storage enabled
- Google Cloud credentials configured
npm install -D @nx/gcs-cache@npm:@nx-extend/gcp-task-runner@<latest version>Update your nx.json with the following:
{
"gcs": {
"bucket": "your-bucket"
}
}The task runner uses @google-cloud/storage which in turn is capable of using the env variable GOOGLE_APPLICATION_CREDENTIALS.
Set this environment variable to point to your service account key file:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"| Name | Type | Default | Description |
|---|---|---|---|
bucket |
string |
- | Name of the Google Cloud Storage bucket to use |