fix: Handle database configuration

This commit is contained in:
Glenn Y. Rolland 2022-08-18 19:16:44 +02:00
parent fe48a69375
commit 524789f935
3 changed files with 13 additions and 0 deletions

View File

@ -1 +1,5 @@
FROM drone/drone:2.12.1
COPY entrypoint-wrapper.sh /usr/bin/entrypoint-wrapper
ENTRYPOINT ["/usr/bin/entrypoint-wrapper"]

View File

@ -10,6 +10,7 @@ Setup Network & Domains
dokku network:create cicd_net
dokku network:set cicd initial-network cicd_net
dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=glenux@glenux.net
Setup Storage

8
entrypoint-wrapper.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
echo "# Entrypoint Wrapper"
echo "- Setting DRONE_DATABASE_DATASOURCE from DATABASE_URL"
DRONE_DATABASE_DATASOURCE="${DATABASE_URL}"
export DRONE_DATABASE_DATASOURCE
exec /bin/drone-server "$@"