1.1.7 • Published 3 years ago

stagingtopublish v1.1.7

Weekly downloads
27
License
MIT
Repository
bitbucket
Last release
3 years ago

Publisher APP

This application pass the files desired between branches (dev->staging, staging->publish) in order to automate the migration process and prepare the different environments.

Install

npm install -g stagingtopublish

Use

The minimum requirementes are create a branch named "devel" in your repository and to have a ".publisher" configuration file. The rest are automatically created.

publisher staging to pass files from devel to staging branch.

publisher publish to pass files from staging to publish branch.

Arguments

-from: Source branch (only works in staging step). -to: Destination branch (only works in staging step). -m: Commit message. Default "Soy Íñigo Montoya".

{

    "staging": {
        "files": ["init_db/**/*", "docker/**/*", "k8s/**/*", "!application/main-files/themes/*/assets/**/*", "application/**/.*", "application/**/*", "!application/main-files/uploads/**/*", "!application/wp-config.php"],
        "infra": {
            "id": "JENKINS_ID",
            "replicas": {
                "min": 2,
                "max": 4
            },
            "env": {
                "GLOBAL": "global",
                "MYSQL_RANDOM_ROOT_PASSWORD": "yes", 
                "MYSQL_USER": "",
                "MYSQL_PASSWORD": "", 
                "MYSQL_DATABASE": "",
                "APACHE_DOCUMENTROOT": "/var/www/httpdocs"
            },
            "ingress": {
                "sites": ["www.PROJECT_URL", "PROJECT_URL"]

            }
        }
    },

    "publish": {
        "files": ["init_db/**/*", "docker/**/*", "k8s/**/*", "!application/main-files/themes/*/assets/**/*", "application/**/.*", "application/**/*", "!application/main-files/uploads/**/*", "!application/wp-config.php"],
        "infra": {
            "id": "JENKINS_ID",
            "replicas": {
                "min": 2,
                "max": 4
            },
            "env": {
                "GLOBAL": "global",
                "MYSQL_RANDOM_ROOT_PASSWORD": "yes", 
                "MYSQL_USER": "",
                "MYSQL_PASSWORD": "", 
                "MYSQL_DATABASE": "",
                "APACHE_DOCUMENTROOT": "/var/www/httpdocs"
            },
            "ingress": {
                "sites": ["www.PROJECT_URL", "PROJECT_URL"]

            }
        }
    }

}
1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago