Add database secret for Drone CI

closes #388
This commit is contained in:
2022-03-12 15:05:16 -06:00
parent 9187985acc
commit b270a2c1fd
3 changed files with 21 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ template "#{deploy_path}/docker-compose.yml" do
client_id: credentials['client_id'],
client_secret: credentials['client_secret'],
rpc_secret: credentials['rpc_secret'],
database_secret: credentials['database_secret'],
postgres: postgres_config,
max_procs: 4
notifies :restart, "systemd_unit[drone.service]", :delayed

View File

@@ -19,6 +19,7 @@ services:
- DRONE_RPC_SECRET=<%= @rpc_secret %>
- DRONE_DATABASE_DRIVER=postgres
- DRONE_DATABASE_DATASOURCE=postgres://<%= @postgres[:username] %>:<%= @postgres[:password] %>@<%= @postgres[:host] %>:<%= @postgres[:port] %>/<%= @postgres[:database] %>?sslmode=disable
- DRONE_DATABASE_SECRET=<%= @database_secret %>
drone-runner:
image: drone/drone-runner-docker:1.8