Merge pull request #235 from vector-im/dbkr/pass_through_indocker_env_vars

Pass through env vars with special prefix
This commit is contained in:
David Baker
2021-07-19 18:43:24 +01:00
committed by GitHub

View File

@@ -8,7 +8,8 @@ fi
# Taken from https://www.electron.build/multi-platform-build#docker
docker run --rm -ti \
--env-file <(env | grep -iE '^BUILDKITE_API_KEY=') \
# Pass through any vars prefixed with INDOCKER_, removing the prefix
--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 \