An Ember-CLI-Deploy plugin to upload assets to Google Cloud Storage (can also be used for Firebase).
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
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 production
credentials
- GCP credentials object,{ private_key, client_email }
, required (can be specified with GCP envs/config).keyFilename
- Alternative configuration to thecredentials
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 thedist
directory.gzippedFiles
- Files that are already gzipped, hence not requiring more gzipping. This defaults to values fromember-cli-deploy-gzip
.filePattern
- Applied to thedistFiles
via minimatch.metadata
- Hash of metadata properties to be applied to uploaded files.makePublic
- Boolean, if set totrue
will make the uploaded file public. Default isfalse
.
- Create bucket if it doesn't exist
- Support a manifest file
- Add more of the options that the s3 plugin has
- Tests
See CONTRIBUTING.md.
See the Contributing guide for details.