Skip to content

Commit

Permalink
Merge pull request #435 from ZencashOfficial/hotfix/CI_fix_docker_env
Browse files Browse the repository at this point in the history
Fix multiline env vars passed to docker container
  • Loading branch information
cronicc authored Apr 17, 2020
2 parents dd030ef + e2c5f02 commit 761cbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi
# fix /root/.npm/tmp permission errors on package install from git by installing latest npm
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|WIN_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_|TZ') \
$(env | grep -E 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|WIN_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_|TZ' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' ') \
-v "${PWD}":/project \
-v "${HOME}"/.cache/electron:/root/.cache/electron \
-v "${HOME}"/.cache/electron-builder:/root/.cache/electron-builder \
Expand Down

0 comments on commit 761cbf4

Please sign in to comment.