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 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:create cicd_net
dokku network:set cicd initial-network cicd_net dokku network:set cicd initial-network cicd_net
dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=glenux@glenux.net
Setup Storage 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 "$@"