summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAlbert Peschar <albert@peschar.net>2023-02-13 05:53:15 +0200
committerGitHub <noreply@github.com>2023-02-13 03:53:15 +0000
commit9c45358aab5a030e40dbc576c3b0736b8b0e0d36 (patch)
tree61758dd5575e4c53665a077f879ac7a934eb1203 /Dockerfile
parentf78e9d634f9c1177031d4bdeda93f98d63b6bc12 (diff)
downloadale-9c45358aab5a030e40dbc576c3b0736b8b0e0d36.zip
run-tests: download images only on x86-64 (#4421)
When running the tests on aarch64, the run-tests script tries to download a pre-built image that is built for x86-64, and thus does not run. This change adds a check for the Docker daemon host platform and only downloads the image if it will run. Furthermore, the image dependency testbed/vim:24 is also built unless the platform is x86_64, since it is also only provided for this platform.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2985ecc5..c7cc6e98 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,6 @@
-FROM testbed/vim:24
+ARG TESTBED_VIM_VERSION=24
+
+FROM testbed/vim:${TESTBED_VIM_VERSION}
RUN install_vim -tag v8.0.0027 -build \
-tag v9.0.0297 -build \