| `CF_CLI_IMAGE` | the Docker image used to run CF CLI commands <br/>:warning: **set the version required by your Cloud Foundry server** | `registry.hub.docker.com/governmentpaas/cf-cli` |
| `CF_CLI_IMAGE` | The Docker image used to run CF CLI commands <br/>:warning: **set the version required by your Cloud Foundry server** | `registry.hub.docker.com/governmentpaas/cf-cli` |
| `CF_REVIEW_RETIRED_APP_SUFFIX` | If set, the app old version is not deleted/overriden but renamed with this suffix | _none_ |
Note: By default review `environment.url` will be built as `${CF_REVIEW_ENVIRONMENT_SCHEME}://${$CI_PROJECT_NAME}-${CI_ENVIRONMENT_SLUG}.${CF_REVIEW_ENVIRONMENT_DOMAIN}`
Note: By default review `environment.url` will be built as `${CF_REVIEW_ENVIRONMENT_SCHEME}://${$CI_PROJECT_NAME}-${CI_ENVIRONMENT_SLUG}.${CF_REVIEW_ENVIRONMENT_DOMAIN}/${CF_REVIEW_ROUTE_PATH}`
#### Integration environment
@@ -137,7 +139,8 @@ Here are variables supported to configure the integration environment:
| `CF_INTEG_ORG` | CF organization for `integration` env _(only define if different from default)_ | `$CF_ORG` |
| `CF_INTEG_APP_NAME` | Application name for `integration` env | `"${CF_BASE_APP_NAME}-integration"` |
| `CF_INTEG_ENVIRONMENT_URL` | The integration environment url **including scheme** (ex: `https://my-application-integration.nonpublic.domain.com`). Do not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that. | _none_ |
| `CF_INTEG_RETIRED_APP_SUFFIX` | If set, the app old version is not deleted/overriden but renamed with this suffix | _none_ |
@@ -160,7 +163,8 @@ Here are variables supported to configure the staging environment:
| `CF_STAGING_ORG` | CF organization for `staging` env _(only define if different from default)_ | `$CF_ORG` |
| `CF_STAGING_APP_NAME` | Application name for `staging` env | `"${CF_BASE_APP_NAME}-staging"` |
| `CF_STAGING_ENVIRONMENT_URL` | The staging environment url **including scheme** (ex: `https://my-application-staging.nonpublic.domain.com`). Do not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that. | _none_ |
| `CF_STAGING_RETIRED_APP_SUFFIX` | If set, the app old version is not deleted/overriden but renamed with this suffix | _none_ |
@@ -182,7 +186,8 @@ Here are variables supported to configure the production environment:
| `CF_PROD_ORG` | CF organization for `production` env _(only define if different from default)_| `$CF_ORG` |
| `CF_PROD_APP_NAME` | Application name for `production` env | `$CF_BASE_APP_NAME` |
| `CF_PROD_ENVIRONMENT_URL` | The production environment url **including scheme** (ex: `https://my-application.public.domain.com`) Do not use variable inside variable definition as it will result in a two level cascade variable and gitlab does not allow that. | _none_ |
@@ -219,6 +224,7 @@ Deployment hook scripts may use the following environment variables:
from `$appname` during a blue/green deployment for instance)
*`$hostname`: the current hostname being used during the deployment in this environment
*`$domain`: the Cloud Foundry domain being used during the deployment in this environment
*`$routepath`: the Cloud Foundry route path being used during the deployment in this environment
* any [GitLab CI environment](https://docs.gitlab.com/ee/ci/variables/#predefined-environment-variables).
#### cleanup hooks
@@ -288,12 +294,15 @@ Here is the general recommendation (for each one of your environments):
* do not declare any route in the manifest,
* set the `$CF_xxx_HOST_NAME` variable to override the hostname to use (or leave unset to use default),
* set the `$CF_DEFAULT_DOMAIN` or `$CF_xxx_DOMAIN` variable to define the domain to use (or leave unset if you wish
to use the default CF domain).
to use the default CF domain),
* set the `$CF_DEFAULT_ROUTE_PATH` or `$CF_xxx_ROUTE_PATH` variable to define the route path to use (or leave unset if you wish
to use none).
* if the application is mapped to **several routes**:
* declare the [routes in your manifest](https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#routes),
possibly using `((appname))` and `((hostname))` variables,
* set the `$CF_xxx_HOST_NAME` variable to override the hostname to use (or leave unset to use default),
*`$CF_DEFAULT_DOMAIN` or `$CF_xxx_DOMAIN` variables won't be used.
*`$CF_DEFAULT_DOMAIN` or `$CF_xxx_DOMAIN` variables won't be used,
*`$CF_DEFAULT_ROUTE_PATH` or `$CF_xxx_ROUTE_PATH` variables won't be used.
"description":"Global Cloud Foundry default CF domain _(only define if you want to use a different domain from CF default)_",
"advanced":true
},
{
"name":"CF_DEFAULT_ROUTE_PATH",
"description":"Global Cloud Foundry default CF route path _(only define if you want to add a route path to your application route)_",
"advanced":true
},
{
"name":"CF_USER",
"description":"Global Cloud Foundry username",
@@ -80,9 +85,14 @@
},
{
"name":"CF_REVIEW_ENVIRONMENT_DOMAIN",
"description":"The review environment domain (ex: `noprod-cloudfoundry.domain.com`).\n\nBy default review `environment.url` will be built as `${CF_REVIEW_ENVIRONMENT_SCHEME}://${$CI_PROJECT_NAME}-${CI_ENVIRONMENT_SLUG}.${CF_REVIEW_ENVIRONMENT_DOMAIN}`",
"description":"The review environment domain (ex: `noprod-cloudfoundry.domain.com`).\n\nBy default review `environment.url` will be built as `${CF_REVIEW_ENVIRONMENT_SCHEME}://${$CI_PROJECT_NAME}-${CI_ENVIRONMENT_SLUG}.${CF_REVIEW_ENVIRONMENT_DOMAIN}/${CF_REVIEW_ROUTE_PATH}`",