ansible-drone/templates/drone.env.j2
vincent 3e8716c8d8
Some checks failed
continuous-integration/drone/push Build is failing
add admin user
2021-07-10 20:59:41 +02:00

15 lines
711 B
Django/Jinja

DRONE_GITEA_SERVER={{drone_gitea_server}}
DRONE_GITEA_CLIENT_ID={{drone_gitea_client_id}}
DRONE_GITEA_CLIENT_SECRET={{drone_gitea_client_secret}}
DRONE_GITEA_ALWAYS_AUTH={{drone_gitea_always_auth}}
DRONE_RPC_SECRET={{drone_RPC_secret}}
DRONE_RPC_HOST={{drone_server_host}}
DRONE_RPC_PROTO={{drone_server_proto}}
DRONE_SERVER_HOST={{drone_server_host}}
DRONE_SERVER_PROTO={{drone_server_proto}}
{% if drone_db_external and drone_db_host and drone_db_name and drone_db_name %}
DRONE_DATABASE_DRIVER=postgres
DRONE_DATABASE_DATASOURCE=postgres://{{drone_db_user}}:{{drone_db_password|urlencode()}}@{{drone_db_host}}/{{drone_db_name}}?sslmode=disable
{% endif%}
DRONE_USER_CREATE=username:{{drone_user}},admin:true