|
|
|
@ -155,14 +155,14 @@ def main(ctx):
|
|
|
|
|
pipeline["steps"].append(deploy_container_mariadb)
|
|
|
|
|
|
|
|
|
|
if "[database]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "marcthierydb"
|
|
|
|
|
deploy_container_step["name"] = "database-deploy-container"
|
|
|
|
|
deploy_app["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhdb"
|
|
|
|
|
deploy_app["name"] = "database-deploy-container"
|
|
|
|
|
elif "[wrapper]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "marcthieryAPI"
|
|
|
|
|
deploy_container_step["name"] = "wrapper-deploy-container"
|
|
|
|
|
deploy_app["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhAPI"
|
|
|
|
|
deploy_app["name"] = "wrapper-deploy-container"
|
|
|
|
|
elif "[stub]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "marcthierystub"
|
|
|
|
|
deploy_container_step["name"] = "stub-deploy-container"
|
|
|
|
|
deploy_app["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhstub"
|
|
|
|
|
deploy_app["name"] = "stub-deploy-container"
|
|
|
|
|
|
|
|
|
|
if ctx.build.branch != "master":
|
|
|
|
|
|
|
|
|
@ -194,14 +194,14 @@ def main(ctx):
|
|
|
|
|
|
|
|
|
|
if "[cd]" in ctx.build.message:
|
|
|
|
|
if "[database]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhdb"
|
|
|
|
|
deploy_container_step["name"] = "database-deploy-container"
|
|
|
|
|
deploy_app["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhdb"
|
|
|
|
|
deploy_app["name"] = "database-deploy-container"
|
|
|
|
|
elif "[wrapper]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhAPI"
|
|
|
|
|
deploy_container_step["name"] = "wrapper-deploy-container"
|
|
|
|
|
deploy_app["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhAPI"
|
|
|
|
|
deploy_app["name"] = "wrapper-deploy-container"
|
|
|
|
|
elif "[stub]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhstub"
|
|
|
|
|
deploy_container_step["name"] = "stub-deploy-container"
|
|
|
|
|
deploy_app["environment"]["CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE"] = "dhstub"
|
|
|
|
|
deploy_app["name"] = "stub-deploy-container"
|
|
|
|
|
else:
|
|
|
|
|
steps_to_remove = ["docker-build-and-push", "deploy-container", "deploy-container-mariadb"]
|
|
|
|
|
new_steps = []
|
|
|
|
@ -224,8 +224,8 @@ def main(ctx):
|
|
|
|
|
pipeline["steps"] = new_steps
|
|
|
|
|
|
|
|
|
|
if "[overwrite_db]" in ctx.build.message:
|
|
|
|
|
deploy_container_step["name"] = "deploy-container-mariadb-overwrite"
|
|
|
|
|
deploy_container_step["environment"]["OVERWRITE"] = "true"
|
|
|
|
|
deploy_app["name"] = "deploy-container-mariadb-overwrite"
|
|
|
|
|
deploy_app["environment"]["OVERWRITE"] = "true"
|
|
|
|
|
|
|
|
|
|
return pipeline
|
|
|
|
|
|
|
|
|
|