From ddae4fb55832190383cd0619c42317648dcc8e0b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 22 Jun 2019 08:27:41 +0800 Subject: [PATCH] feat: Add secret and registry endpoint --- templates/drone-agent.env.j2 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/drone-agent.env.j2 b/templates/drone-agent.env.j2 index 69df541..03dbd21 100644 --- a/templates/drone-agent.env.j2 +++ b/templates/drone-agent.env.j2 @@ -13,4 +13,14 @@ DRONE_RUNNER_NAME={{ drone_runner_name }} {% endif %} {% if drone_docker_config is defined %} DRONE_DOCKER_CONFIG={{ drone_docker_config }} -{% endif % +{% endif %} +{% if drone_secret_endpoint is defined %} +DRONE_SECRET_ENDPOINT={{ drone_secret_endpoint }} +DRONE_SECRET_SECRET={{ drone_secret_secret }} +DRONE_SECRET_SKIP_VERIFY={{ drone_secret_skip_verify }} +{% endif %} +{% if drone_registry_endpoint is defined %} +DRONE_REGISTRY_ENDPOINT={{ drone_registry_endpoint }} +DRONE_REGISTRY_SECRET={{ drone_registry_secret }} +DRONE_REGISTRY_SKIP_VERIFY={{ drone_registry_skip_verify }} +{% endif %}