Bot that can Build, Deploy, and Whistle
ha
- @johnny5 deploy xyz minor
- bot asks for confirmation
- bot attempts Mgr.requestDeploy; if fails reports failure (build is already running, etc). possibly repurpose canceled builds.
- bot updates package.json with latest version. if another build with same semantic level was canceled, it uses this as the version.
- bot pushes package.json change to git.
- git push triggers drone build.
- drone task: attempt Mgr.startDeploy with package.json version. if version was already deployed return already deployed, if no version exists return no version exists, if version is in the wrong state return wrong state.
- drone task: if prod deploy was successfully started or event: tag occurred this should only run the prod deploy build.
- drone task: make sure git branch up-to-date with master
- drone task: run tests
- drone task: slack tests passed
- drone task: deploy
- drone task: run smoke tests
- drone task: slack deployed and smoke tested
- drone task: call Mgr.finishDeploy to mark finished
-
@johnny5 says deploy done asks for commit or not
- @johnny5 commit
- bot asks for confirmation
- bot merges branch into master
- bot tags master with version and release notes from story descriptions.
- bot updates jira fixed version on stories
- bot attempts Mgr.commitDeploy
BLAHH
- @johnny5 deploy xyz minor
- bot asks for confirmation
- bot attempts Mgr.requestDeploy; if fails reports failure (build is already running, etc). possibly repurpose canceled builds.
- bot updates package.json with latest version. if another build with same semantic level was canceled, it uses this as the version.
- bot pushes package.json change to git.
- git push triggers drone build.
- drone task: attempt Mgr.startDeploy with package.json version. if version was already deployed return already deployed, if no version exists return no version exists, if version is in the wrong state return wrong state.
- drone task: if prod deploy was successfully started or event: tag occurred this should only run the prod deploy build.
- drone task: make sure git branch up-to-date with master
- drone task: run tests
- drone task: slack tests passed
- drone task: deploy
- drone task: run smoke tests
- drone task: slack deployed and smoke tested
- drone task: call Mgr.finishDeploy to mark finished
-
@johnny5 says deploy done asks for commit or not
- @johnny5 rollback
- bot asks for confirmation
- bot deploys (through drone?) from master