deploy-vir
v0.3.0
Published
Deploy a branch to another branch with notifications.
Readme
deploy-vir
Deploy from branch to branch via git.
Install
npm i -D deploy-virSetup
Add a TypeScript or JavaScript config file somewhere in your repo. Its default export should be your config:
import {defineDeployVirConfig, NotificationTarget} from 'deploy-vir';
export default defineDeployVirConfig({
repos: [
{
/** This does not need to match the actual repo name. */
name: 'whatever',
gitUrl: '[email protected]:electrovir/deploy-vir.git',
deploys: [
{
deployName: 'staging',
fromBranch: 'dev',
toBranch: 'staging',
},
{
deployName: 'prod',
fromBranch: 'staging',
toBranch: 'prod',
},
],
},
],
notifications: [
{
target: NotificationTarget.Slack,
webhookUrl: 'https://hooks.slack.com/services/X/X/X',
channelName: '#deploys',
},
],
});Running
Then just run the CLI:
npx deploy-vir <path-to-config> <repo-name-to-deploy> <deploy-name-to-deploy>