fix: Handle database configuration
This commit is contained in:
parent
fe48a69375
commit
524789f935
3 changed files with 13 additions and 0 deletions
|
@ -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"]
|
||||||
|
|
|
@ -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
8
entrypoint-wrapper.sh
Executable 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 "$@"
|
Loading…
Reference in a new issue