about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2024-11-13 00:21:37 +0300
committerklensy <klensy@users.noreply.github.com>2024-11-13 00:21:37 +0300
commitacea108b9079145d4d907be75cef666af401ef11 (patch)
tree7cc43be4a2caf738952f78430584b35d0b6e3bc1 /src/ci/docker
parent6503543d11583d1686d4989847b2afbec8d9fdba (diff)
downloadrust-acea108b9079145d4d907be75cef666af401ef11.tar.gz
rust-acea108b9079145d4d907be75cef666af401ef11.zip
fix REGISTRY_USERNAME to reuse cache between auto and pr jobs
Diffstat (limited to 'src/ci/docker')
-rwxr-xr-xsrc/ci/docker/run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ci/docker/run.sh b/src/ci/docker/run.sh
index 28487bce482..d554186df4c 100755
--- a/src/ci/docker/run.sh
+++ b/src/ci/docker/run.sh
@@ -96,7 +96,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
     docker --version
 
     REGISTRY=ghcr.io
-    REGISTRY_USERNAME=${GITHUB_REPOSITORY_OWNER:-rust-lang-ci}
+    # Hardcode username to reuse cache between auto and pr jobs
+    # FIXME: should be changed after move from rust-lang-ci
+    REGISTRY_USERNAME=rust-lang-ci
     # Tag used to push the final Docker image, so that it can be pulled by e.g. rustup
     IMAGE_TAG=${REGISTRY}/${REGISTRY_USERNAME}/rust-ci:${cksum}
     # Tag used to cache the Docker build