fix: update git config

This commit is contained in:
Bo-Yi Wu 2019-06-16 22:02:01 +08:00
parent b8de0942e6
commit 890038c724

View File

@ -23,34 +23,24 @@ DRONE_DATABASE_DRIVER={{ drone_database_driver }}
DRONE_DATABASE_DATASOURCE={{ drone_database_datasource }} DRONE_DATABASE_DATASOURCE={{ drone_database_datasource }}
{% endif %} {% endif %}
{% if drone_github_client_id != "" and drone_github_client_secret != "" %}
DRONE_GITHUB_SERVER=https://github.com DRONE_GITHUB_SERVER=https://github.com
{% if drone_github_client_id is defined %}
DRONE_GITHUB_CLIENT_ID={{ drone_github_client_id }} DRONE_GITHUB_CLIENT_ID={{ drone_github_client_id }}
{% endif %}
{% if drone_github_client_secret is defined %}
DRONE_GITHUB_CLIENT_SECRET={{ drone_github_client_secret }} DRONE_GITHUB_CLIENT_SECRET={{ drone_github_client_secret }}
{% endif %}
DRONE_GITHUB_DEBUG={{ drone_github_debug }} 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_SERVER=https://gitlab.com
{% if drone_gitlab_client_id is defined %}
DRONE_GITLAB_CLIENT_ID={{ drone_gitlab_client_id }} DRONE_GITLAB_CLIENT_ID={{ drone_gitlab_client_id }}
{% endif %}
{% if drone_gitlab_client_secret is defined %}
DRONE_GITLAB_CLIENT_SECRET={{ drone_gitlab_client_secret }} DRONE_GITLAB_CLIENT_SECRET={{ drone_gitlab_client_secret }}
{% endif %}
DRONE_GITLAB_DEBUG={{ drone_github_debug }} DRONE_GITLAB_DEBUG={{ drone_github_debug }}
{% endif %}
{% if drone_gitea_server is defined %} {% if drone_gitea_client_id != "" and drone_gitea_client_secret != "" %}
DRONE_GITEA_SERVER={{ drone_gitea_server }} DRONE_GITEA_SERVER={{ drone_gitea_server }}
{% endif %}
{% if drone_gitea_client_id is defined %}
DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }} DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }}
{% endif %}
{% if drone_gitea_client_secret is defined %}
DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }} DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }}
{% endif %}
{% if drone_gitea_skip_verify is defined %}
DRONE_GITEA_SKIP_VERIFY={{ drone_gitea_skip_verify }} DRONE_GITEA_SKIP_VERIFY={{ drone_gitea_skip_verify }}
{% endif %}
DRONE_GITEA_DEBUG={{ drone_github_debug }} DRONE_GITEA_DEBUG={{ drone_github_debug }}
{% endif %}