Pass through env vars with special prefix

This commit is contained in:
David Baker 2021-07-19 18:38:30 +01:00
parent 494200d576
commit bfcb1e6bfb

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 \