Use dokku config to export config for dockerfile builds
This commit is contained in:
1 parent
12f97ee18e
commit
cc66905c6e
1 file changed
+2
-2
@@ -7,8 +7,8 @@ DOCKERFILE_ENV_FILE="$DOKKU_ROOT/$APP/DOCKERFILE_ENV_FILE"
|
|||||||
|
|
||||||
if ! is_image_herokuish_based "$IMAGE"; then
|
if ! is_image_herokuish_based "$IMAGE"; then
|
||||||
> "$DOCKERFILE_ENV_FILE"
|
> "$DOCKERFILE_ENV_FILE"
|
||||||
[[ -f "$DOKKU_ROOT/ENV" ]] && sed -e "s:^export ::g" -e "s:=':=:g" -e "s:'$::g" "$DOKKU_ROOT/ENV" > "$DOCKERFILE_ENV_FILE"
|
dokku config --global --export | sed -e "s:^export ::g" -e "s:=':=:g" -e "s:'$::g" > "$DOCKERFILE_ENV_FILE"
|
||||||
[[ -f "$DOKKU_ROOT/$APP/ENV" ]] && sed -e "s:^export ::g" -e "s:=':=:g" -e "s:'$::g" "$DOKKU_ROOT/$APP/ENV" >> "$DOCKERFILE_ENV_FILE"
|
dokku config "$APP" --export | sed -e "s:^export ::g" -e "s:=':=:g" -e "s:'$::g" >> "$DOCKERFILE_ENV_FILE"
|
||||||
|
|
||||||
echo "$STDIN --env-file=$DOCKERFILE_ENV_FILE"
|
echo "$STDIN --env-file=$DOCKERFILE_ENV_FILE"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user