1.0.4 • Published 3 years ago

@dukaan/cli v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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.

The push cli command does the following -

  1. Checks if the current directory is a valid dukaanTech project.
  2. Checks if the current branch is the actual production branch for the project.
  3. Checks if the user has access to deploy projects to production
  4. Runs npm run build to build the project into a static production build.
  5. verifies if the build was successful.
  6. Creates a new release docker image tag.
  7. Pushes the new image to image registry
  8. Notify the production servers to pull this new image
  9. Create a new service with this image tag.
  10. Gracefully switches traffic from old release to new release.

Install

@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

Usage

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!