Skip to content

Latest commit

 

History

History
75 lines (59 loc) · 2.44 KB

readme.md

File metadata and controls

75 lines (59 loc) · 2.44 KB

Tag deploy

Tag Deploy is an innovative solution designed to simplify the process of adding tags in Git, making it more efficient to configure projects for deployment. With this intuitive tool, you can easily add and manage tags, customizing the identification of specific points in your repository. In addition, Tag Deploy gives you the flexibility to configure specific environments for each tag, ensuring precise control over deployment destinations. Simplify your deployment workflow and gain more control over your projects with Tag Deploy

Using

Configuration

To configure the project, create a file in the root called 'tag-deploy-config'. If you prefer, use the sample configuration below as a starting point for your own configuration:

{
  "global": {
    "deployments": [
      {
        "name": "homolog",
        "branch": "develop",
        "modifier": "-rc"
      },
      {
        "name": "production",
        "branch": "master"
      }
    ]
  },
  "projects": []
}

Projects

You can configure the project manually by changing the JSON values in the 'tag-deploy-config' file, resulting in a configuration similar to the example below:

{
  "global": {
    "deployments": [
      {
        "name": "homolog",
        "branch": "develop",
        "modifier": "-rc"
      },
      {
        "name": "production",
        "branch": "master"
      }
    ]
  },
  "projects": [{ "name": "", "path": "" }]
}

An alternative is to include the '--add' option before the project execution command. This tells the system that you want to add it and it will create an interface where you can manually enter the information or specify the path of a folder containing several projects. This way, you can select the projects you want to configure simultaneously.

tag-deploy --add

Link configuration

To run the project from any directory in your terminal, you can create an npm link. To do this, simply access the folder where your project is located in the terminal and run the following command:

npm link

Autores