stagingtopublish v1.1.7
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"]
}
}
}
}
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago