diff options
Diffstat (limited to 'test')
| -rwxr-xr-x | test | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,9 +16,9 @@ set -eu ROOT="$(cd "$(dirname "$0")" && pwd)" -# Bump the tag suffix whenever test-rig/Dockerfile or sdk-packages.txt -# changes; otherwise a stale cached image keeps being used. -IMG="scrcpy-android-test:5" +# The image tag is a hash of the rig inputs, so editing the Dockerfile +# or the SDK package list automatically invalidates the cached image. +IMG="scrcpy-android-test:$(cat "$ROOT/test-rig/Dockerfile" "$ROOT/test-rig/sdk-packages.txt" | sha256sum | cut -c1-12)" cmd="${1:-unit}" case "$cmd" in |