about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-08-01 11:34:53 +0200
committerPietro Albini <pietro@pietroalbini.org>2019-08-01 15:57:21 +0200
commit8f8b3f26c2aac88b8d9ad4a43124142724f29df0 (patch)
tree059ba23d7366faf08528492154c5e20435a7975a
parent09e39897587dca70f0b15093d425a682c392349c (diff)
downloadrust-8f8b3f26c2aac88b8d9ad4a43124142724f29df0.tar.gz
rust-8f8b3f26c2aac88b8d9ad4a43124142724f29df0.zip
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.
-rwxr-xr-xsrc/ci/docker/run.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ci/docker/run.sh b/src/ci/docker/run.sh
index 7d3f013ea01..415d6b63eb8 100755
--- a/src/ci/docker/run.sh
+++ b/src/ci/docker/run.sh
@@ -172,6 +172,7 @@ docker \
   --env BUILD_SOURCEBRANCHNAME \
   --env TOOLSTATE_REPO_ACCESS_TOKEN \
   --env TOOLSTATE_REPO \
+  --env TOOLSTATE_PUBLISH \
   --env CI_JOB_NAME="${CI_JOB_NAME-$IMAGE}" \
   --init \
   --rm \