File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -45,3 +45,7 @@ RUN echo "deb http://ftp.de.debian.org/debian buster main" >> /etc/apt/sources.l
45
45
46
46
# Ensure that yarn is installed.
47
47
RUN npm i -g yarn@1.12.3 npx
48
+
49
+ # Copy CI environment variables, if they exist.
50
+ ARG env_vars
51
+ RUN if [ "$env_vars" != "" ]; then export $env_vars; env; fi
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ imageID=`docker images -q code-server-e2e`
19
19
# `--rebuild` flag is provided. Alternatively, the image can be
20
20
# rebuilt by manually running `yarn build:docker`.
21
21
if [[ " $imageID " == " " ]] || [[ " $1 " == " --rebuild" ]]; then
22
- yarn build:docker
22
+ if [[ " $TRAVIS_OS_NAME " != " " ]]; then
23
+ yarn build:docker --build-arg env_vars=" $( echo $( env | grep TRAVIS | awk -F' =' ' { printf $1"="$2" " }' ) ) "
24
+ else
25
+ yarn build:docker
26
+ fi
23
27
fi
24
28
yarn test:docker
You can’t perform that action at this time.
0 commit comments