{% if drone_server_host is defined %} DRONE_SERVER_HOST={{ drone_server_host }} {% endif %} {% if drone_server_proto is defined %} DRONE_SERVER_PROTO={{ drone_server_proto }} {% endif %} {% if drone_tls_autocert is defined %} DRONE_TLS_AUTOCERT={{ drone_tls_autocert }} {% endif %} {% if drone_rpc_secret is defined %} DRONE_RPC_SECRET={{ drone_rpc_secret }} {% endif %} {% if drone_database_secret is defined and drone_database_secret != "" %} DRONE_DATABASE_SECRET={{ drone_database_secret }} {% endif %} {% if drone_agents_enabled is defined %} DRONE_AGENTS_ENABLED=true {% endif %} {% if drone_logs_pretty is defined %} DRONE_LOGS_PRETTY={{ drone_logs_pretty }} {% endif %} {% if drone_logs_color is defined %} DRONE_LOGS_COLOR={{ drone_logs_color }} {% endif %} DRONE_LOGS_DEBUG=true {% if drone_user_create is defined %} DRONE_USER_CREATE={{ drone_user_create }} {% endif %} {% if drone_user_filter is defined %} DRONE_USER_FILTER={{ drone_user_filter }} {% endif %} {% if drone_database_driver is defined and drone_database_driver != "sqlite" %} DRONE_DATABASE_DRIVER={{ drone_database_driver }} {% endif %} {% if drone_database_datasource is defined and drone_database_driver != "sqlite" %} DRONE_DATABASE_DATASOURCE={{ drone_database_datasource }} {% endif %} {% if drone_github_client_id != "" and drone_github_client_secret != "" %} DRONE_GITHUB_SERVER=https://github.com DRONE_GITHUB_CLIENT_ID={{ drone_github_client_id }} DRONE_GITHUB_CLIENT_SECRET={{ drone_github_client_secret }} DRONE_GITHUB_DEBUG={{ drone_github_debug }} {% endif %} {% if drone_gitlab_client_id != "" and drone_gitlab_client_secret != "" %} DRONE_GITLAB_SERVER=https://gitlab.com DRONE_GITLAB_CLIENT_ID={{ drone_gitlab_client_id }} DRONE_GITLAB_CLIENT_SECRET={{ drone_gitlab_client_secret }} DRONE_GITLAB_DEBUG={{ drone_github_debug }} {% endif %} {% if drone_gitea_client_id != "" and drone_gitea_client_secret != "" %} DRONE_GITEA_SERVER={{ drone_gitea_server }} DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }} DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }} DRONE_GITEA_SKIP_VERIFY={{ drone_gitea_skip_verify }} DRONE_GITEA_DEBUG={{ drone_github_debug }} {% endif %} {% if aws_access_key_id != "" and aws_secret_access_key != "" %} AWS_ACCESS_KEY_ID={{ aws_access_key_id }} AWS_SECRET_ACCESS_KEY={{ aws_secret_access_key }} AWS_DEFAULT_REGION={{ aws_default_region }} AWS_REGION={{ aws_region }} DRONE_S3_BUCKET={{ drone_s3_bucket }} {% endif %} {% if drone_kubernetes_enabled == True %} DRONE_KUBERNETES_ENABLED={{ aws_region }} DRONE_KUBERNETES_NAMESPACE={{ aws_region }} DRONE_KUBERNETES_CONFIG_PATH={{ aws_region }} DRONE_KUBERNETES_CONFIG_URL={{ aws_region }} DRONE_KUBERNETES_TTL_AFTER_FINISHED={{ aws_region }} DRONE_KUBERNETES_SERVICE_ACCOUNT={{ aws_region }} DRONE_KUBERNETES_IMAGE_PULL={{ aws_region }} DRONE_KUBERNETES_IMAGE={{ aws_region }} {% endif %}