1.0.1 • Published 9 years ago
shipit-deploy-package-support v1.0.1
Shipit-deploy-package-support
Set of tasks for deploying packaged apps using shipit and the shipit-deploy plugin.
Provides a set of task that can be integrated with Shipit's deploy
taks.
Tasks
deploy:printLatestTags
- prints the last N (default: 5) tagsdeploy:version
- queries the user to enter the version(tag) that should be deployeddeploy:syncRepo
- synchronizes the remote repository with your release repositorydeploy:pushNewVersion
- fetches the specified version from the synchronized repository and deploys it to the remote server (test, staging)
Installation
npm install shipit-deploy-package-support
Configuration
Inside your shipitfile.js
add the following configuration:
// if you want to print the last 10 tags
shipit.numberOfTagsToPrint = 10;
shipit.packagedDeployConfig = {
syncUser: 'myUser',
syncRepositoryUrl: 'sync-repo.url.com',
pathToSyncScript: '/path/to/the/sync/script.sh',
packageName: 'myApp',
packageFileExtension: 'tar.gz',
packageExtractionCommand: 'tar xzf',
pathToPackageRepository: '/path/to/the/release/repository'
};
Example shipitfile.js
module.exports = function (shipit) {
shipit.packagedDeployConfig = {
// ....
};
shipit.initConfig({
test: {
// ...
},
production: {
// ...
}
});
// Override of the default deploy task
shipit.task('deploy', [
'deploy:init',
'deploy:syncRepo',
'deploy:printLatestTags',
'deploy:version',
'deploy:pushNewVersion',
'deploy:publish',
'deploy:clean',
'deploy:finish'
]);