An Ember-CLI-Deploy plugin to upload assets to Google Cloud Storage.
MIT License
An Ember-CLI-Deploy plugin to upload assets to Google Cloud Storage (can also be used for Firebase).
To get up and running quickly, do the following:
ember install ember-cli-deploy-gcloud-storage
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>',
};
ember deploy production
credentials
- GCP credentials object, { private_key, client_email }
, required (can be specified with GCP envs/config).keyFilename
- Alternative configuration to the credentials
option. 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 the dist
directory.gzippedFiles
- Files that are already gzipped, hence not requiring more gzipping. This defaults to values from ember-cli-deploy-gzip
.filePattern
- Applied to the distFiles
via minimatch.metadata
- Hash of metadata properties to be applied to uploaded files.makePublic
- Boolean, if set to true
will make the uploaded file public. Default is false
.See the Contributing guide for details.