Merge pull request #236 from vector-im/dbkr/fix_docker_var_prefix

Fix docker variable passthrough
This commit is contained in:
David Baker 2021-07-19 20:36:11 +01:00 committed by GitHub
commit 63065761ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 \