mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Use Docker cache from the current repository
This is needed to make the cache work after moving CI from the `rust-lang-ci` org to `rust-lang`.
(cherry picked from commit eb530325f0)
This commit is contained in:
committed by
Josh Stone
parent
1272ff814f
commit
eafa0f9b23
@@ -97,9 +97,8 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
|
||||
docker --version
|
||||
|
||||
REGISTRY=ghcr.io
|
||||
# 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
|
||||
# Default to `rust-lang` to allow reusing the cache for local builds
|
||||
REGISTRY_USERNAME=${GITHUB_REPOSITORY_OWNER:-rust-lang}
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user