ember-cli-deploy-versioning
This ember-cli-deploy plugin versions each deployment with a commit + annotated tag.
The affect of this plugin is that all deploys are tied to a specific version
and a .zip file is optionaly included in the distFiles
to be uploaded (when used with ember-cli-deploy-s3).
Configuration Options
Supply configuration options in config/deploy.js under the ENV.versioning
hash.
versioning: {
level: 'patch'
versionFiles: ['package.json']
bundle: false
gitAdd: ['package.json']
gitRemote: 'origin'
gitBranch: ''
gitTagMessage: 'Releasing %FV'
gitCommitMessage: '%FV [ci skip]'
versioner: 'json'
incrementer: 'semver'
formatter: null
}
Usage
If you want to skip versioning just supply a --skip-versioning
flag with your deploy command:
ember deploy development --skip-versioning
Deployment context
This plugin creates the following object on the deployment context:
versioning: {
previous: '1.0.0',
current: '1.1.0',
tagName: 'v1.1.0',
bundlePath: 'tmp/deploy-dist/v1.1.0.zip',
bundlePathRelative: 'v1.1.0.zip'
}
Required deployment context key/values:
{
distDir,
distFiles
}