Commit 2d9c536e authored by hmagph's avatar hmagph
Browse files

use CF_APP for app name

parent 5cb650bf
......@@ -38,10 +38,10 @@ stages:
extension_id: ibm.devops.services.pipeline.docker.deploy.ice
target:
url: ${CF_TARGET_URL}
organization_guid: ${CF_ORGANIZATION_ID}
space_guid: ${CF_SPACE_ID}
organization: ${CF_ORGANIZATION}
space: ${CF_SPACE}
PORT: 80
OPTIONAL_ARGS:
CONTAINER_NAME: containerTest
CONTAINER_NAME: ${CF_APP}
DEPLOY_TYPE: red_black
COMMAND: "#!/bin/bash\n# The following are some example deployment scripts. Use these as is or fork them and include your updates here:\necho -e \"${label_color}Starting deployment script${no_color}\"\n\n\n# To view/fork this script goto: https://github.com/Osthanes/deployscripts\n# git_retry will retry git calls to prevent pipeline failure on temporary github problems\n# the code can be found in git_util.sh at https://github.com/Osthanes/container_deployer\ngit_retry clone https://github.com/Osthanes/deployscripts.git deployscripts\n\n\n# You can deploy your Image as either a single Container or as a Container Group. A Container Group deploys a number of containers which is defined by the GROUP_DESIRED property on the Stage.\n# By default we will deploy as a single container\n\n# Deploy with containers:\n# Optional environment properties (can be set directly in this script, or defined as environment properties):\n# NAME Value Description\n# ============= ========= ==============\n# BIND_TO String Specify a Bluemix application name that whose bound services you wish to make available to the container. By default this is not set.\n# CONTAINER_SIZE String Specify container size: m1.tiny (256), m1.small (512), m1.medium (1024), m1.large (2048).\n# Default is m1.tiny (256).\n#\n/bin/bash deployscripts/deploycontainer.sh\n\n# Deploy Container Group:\n# Optional environment properties (can be set directly in this script, or defined as environment properties):\n# NAME Value Description\n# ============= ========= ==============\n# ROUTE_HOSTNAME String Specify the Hostname for the Cloud Foundry Route you wish to assign to this container group. By default this is not set.\n# ROUTE_DOMAIN String Specify domain name for the Cloud Foundry Route you wish to assign to this container group. By default this is not set.\n# BIND_TO String Specify a Bluemix application name that whose bound services you wish to make available to the container. By default this is not set.\n# DESIRED_INSTANCES: Number Specify the number of instances in the group. Default value is 1.\n# AUTO_RECOVERY: Boolean Set auto-recovery to true/false. Default value is false.\n\n# Default is false.\n# CONTAINER_SIZE String Specify container size: m1.tiny (256), m1.small (512), m1.medium (1024), m1.large (2048).\n# Default is m1.tiny (256).\n# IF YOU WANT CONTAINER GROUPS .. uncomment the next line, and comment out the previous deployment line (/bin/bash deployscripts/deploygroup.sh)\n#/bin/bash deployscripts/deploygroup.sh\n\nRESULT=$?\n\n#########################\n# Environment DETAILS #\n#########################\n# The environment has been setup.\n# The Cloud Foundry CLI (cf), IBM Container Service CLI (ice), Git client (git), IDS Inventory CLI (ids-inv) and Python 2.7.3 (python) have been installed.\n# Based on the organization and space selected in the Job credentials are in place for both IBM Container Service and IBM Bluemix\n\n# The following colors have been defined to help with presentation of logs: green, red, label_color, no_color.\nif [ $RESULT -ne 0 ]; then\n echo -e \"${red}Executed failed or had warnings ${no_color}\"\n ${EXT_DIR}/print_help.sh\n exit $RESULT\nfi\necho -e \"${green}Execution complete${no_label}\""
\ No newline at end of file
COMMAND: "#!/bin/bash\n# The following are some example deployment scripts. Use these as is or fork them and include your updates here:\necho -e \"${label_color}Starting deployment script${no_color}\"\n\n\n# To view/fork this script goto: https://github.com/Osthanes/deployscripts\n# git_retry will retry git calls to prevent pipeline failure on temporary github problems\n# the code can be found in git_util.sh at https://github.com/Osthanes/container_deployer\ngit_retry clone https://github.com/Osthanes/deployscripts.git deployscripts\n\n\n# You can deploy your Image as either a single Container or as a Container Group. A Container Group deploys a number of containers which is defined by the GROUP_DESIRED property on the Stage.\n# By default we will deploy as a single container\n\n# Deploy with containers:\n# Optional environment properties (can be set directly in this script, or defined as environment properties):\n# NAME Value Description\n# ============= ========= ==============\n# BIND_TO String Specify a Bluemix application name that whose bound services you wish to make available to the container. By default this is not set.\n# CONTAINER_SIZE String Specify container size: m1.tiny (256), m1.small (512), m1.medium (1024), m1.large (2048).\n# Default is m1.tiny (256).\n#\n/bin/bash deployscripts/deploycontainer.sh\n\n# Deploy Container Group:\n# Optional environment properties (can be set directly in this script, or defined as environment properties):\n# NAME Value Description\n# ============= ========= ==============\n# ROUTE_HOSTNAME String Specify the Hostname for the Cloud Foundry Route you wish to assign to this container group. By default this is not set.\n# ROUTE_DOMAIN String Specify domain name for the Cloud Foundry Route you wish to assign to this container group. By default this is not set.\n# BIND_TO String Specify a Bluemix application name that whose bound services you wish to make available to the container. By default this is not set.\n# DESIRED_INSTANCES: Number Specify the number of instances in the group. Default value is 1.\n# AUTO_RECOVERY: Boolean Set auto-recovery to true/false. Default value is false.\n\n# Default is false.\n# CONTAINER_SIZE String Specify container size: m1.tiny (256), m1.small (512), m1.medium (1024), m1.large (2048).\n# Default is m1.tiny (256).\n# IF YOU WANT CONTAINER GROUPS .. uncomment the next line, and comment out the previous deployment line (/bin/bash deployscripts/deploygroup.sh)\n#/bin/bash deployscripts/deploygroup.sh\n\nRESULT=$?\n\n#########################\n# Environment DETAILS #\n#########################\n# The environment has been setup.\n# The Cloud Foundry CLI (cf), IBM Container Service CLI (ice), Git client (git), IDS Inventory CLI (ids-inv) and Python 2.7.3 (python) have been installed.\n# Based on the organization and space selected in the Job credentials are in place for both IBM Container Service and IBM Bluemix\n\n# The following colors have been defined to help with presentation of logs: green, red, label_color, no_color.\nif [ $RESULT -ne 0 ]; then\n echo -e \"${red}Executed failed or had warnings ${no_color}\"\n ${EXT_DIR}/print_help.sh\n exit $RESULT\nfi\necho -e \"${green}Execution complete${no_label}\""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment