1.0.1 • Published 5 years ago
ember-cli-deploy-gcloud-storage v1.0.1
ember-cli-deploy-gcloud-storage
An Ember-CLI-Deploy plugin to upload assets to Google Cloud Storage (can also be used for Firebase).
Compatibility
- Ember.js v3.16 or above
 - Ember CLI v2.13 or above
 - Node.js v10 or above
 
Quick Start
To get up and running quickly, do the following:
- Install ember-cli-deploy first.
 - Ensure ember-cli-deploy-build is installed and configured.
 - Install this plugin
 
ember install ember-cli-deploy-gcloud-storage- Place the following configuration into 
config/deploy.js 
ENV['gcloud-storage'] = {
  credentials: {
    private_key: '<your-private-key>',
    client_email: '<your-client-email>',
  },
  projectId: '<your-gcloud-project-id>',
  bucket: '<your-storage-bucket>',
};- Run the pipeline
 
ember deploy productionConfiguration
credentials- GCP credentials object,{ private_key, client_email }, required (can be specified with GCP envs/config).keyFilename- Alternative configuration to thecredentialsoption. Specify the path to the key file downloaded for service account.projectId- Your GCP project id, required (can be specified with GCP envs,GCLOUD_PROJECT=<projectId> ember deploy).bucket- A bucket in GCS to store your files, required.bucketFolder- A folder inside the bucket to place your files, optional.distFiles- Files that need to be deployed, defaults to all files in thedistdirectory.gzippedFiles- Files that are already gzipped, hence not requiring more gzipping. This defaults to values fromember-cli-deploy-gzip.filePattern- Applied to thedistFilesvia minimatch.metadata- Hash of metadata properties to be applied to uploaded files.makePublic- Boolean, if set totruewill make the uploaded file public. Default isfalse.
TODO
- Create bucket if it doesn't exist
 - Support a manifest file
 - Add more of the options that the s3 plugin has
 - Tests
 
Contributing
See CONTRIBUTING.md.
See the Contributing guide for details.