A CLI client to deploy #DukaanTech frontend applications. Deploying frontend apps is super easy with this tool.
$ push
- with this single cli command, the app is literally pushed to production environment.
- Checks if the current directory is a valid dukaanTech project.
- Checks if the current branch is the actual production branch for the project.
- Checks if the user has access to deploy projects to production
- Runs
npm run build
to build the project into a static production build. - verifies if the build was successful.
- Creates a new release docker image tag.
- Pushes the new image to image registry
- Notify the production servers to pull this new image
- Create a new service with this image tag.
- Gracefully switches traffic from old release to new release.
@dukaan/cli
is available as a global
npm package and as such, can be installed through npm with ease.
To install dukaan/cli
use the following command:
npm install -g @dukaan/cli
yarn add global @dukaan/cli
Once installed you can run this tool from any of the frontend projects.
- Go to Project root directory
- Git Checkout to production branch
- type
push
and hit enter. - thats it!