Skip to content

Commit 8f8b3f2

Browse files
committed
ci: forward the TOOLSTATE_PUBLISH environment variable inside docker
A recent commit modified toolstate to only push updated data when the TOOLSTATE_PUBLISH environment variable is present. This worked fine on Windows but failed on Linux, since Linux jobs run inside Docker containers and the variable wasn't forwarded inside it. This changes the Docker startup code to set the TOOLSTATE_PUBLISH enviornment variable inside the container if it's present outside.
1 parent 09e3989 commit 8f8b3f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ci/docker/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ docker \
172172
--env BUILD_SOURCEBRANCHNAME \
173173
--env TOOLSTATE_REPO_ACCESS_TOKEN \
174174
--env TOOLSTATE_REPO \
175+
--env TOOLSTATE_PUBLISH \
175176
--env CI_JOB_NAME="${CI_JOB_NAME-$IMAGE}" \
176177
--init \
177178
--rm \

0 commit comments

Comments
 (0)