Fix docker variable passthrough

This commit is contained in:
David Baker 2021-07-19 20:09:13 +01:00
parent 290907a427
commit 71134c448d

View File

@ -7,9 +7,9 @@ if [ $? != 0 ]; then
fi
# Taken from https://www.electron.build/multi-platform-build#docker
docker run --rm -ti \
# Pass through any vars prefixed with INDOCKER_, removing the prefix
--env-file <(env | grep -E '^INDOCKER_=' | sed -e 's/^INDOCKER_//') \
docker run --rm -ti \
--env-file <(env | grep -E '^INDOCKER_' | sed -e 's/^INDOCKER_//') \
--env ELECTRON_CACHE="/root/.cache/electron" \
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
-v ${PWD}:/project \