We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 202ad9a + e1b7d8f commit 0ccc1bfCopy full SHA for 0ccc1bf
ci/run-docker.sh
@@ -41,10 +41,10 @@ run() {
41
export RUST_COMPILER_RT_ROOT=./compiler-rt
42
fi
43
44
- if [ "$GITHUB_ACTIONS" = "true" ]; then
+ if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
45
# Enable Docker image caching on GHA
46
47
- buildx="buildx"
+ build_cmd=("buildx" "build")
48
build_args=(
49
"--cache-from" "type=local,src=/tmp/.buildx-cache"
50
"--cache-to" "type=local,dest=/tmp/.buildx-cache-new"
@@ -53,7 +53,7 @@ run() {
53
)
54
55
56
- docker "${buildx:-}" build \
+ docker ${build_cmd[@]:-build} \
57
-t "builtins-$target" \
58
${build_args[@]:-} \
59
"ci/docker/$target"
0 commit comments