summaryrefslogtreecommitdiff
path: root/other/docker/run-ci
diff options
context:
space:
mode:
Diffstat (limited to 'other/docker/run-ci')
-rwxr-xr-xother/docker/run-ci15
1 files changed, 15 insertions, 0 deletions
diff --git a/other/docker/run-ci b/other/docker/run-ci
new file mode 100755
index 00000000..9005cfbd
--- /dev/null
+++ b/other/docker/run-ci
@@ -0,0 +1,15 @@
1#!/bin/bash
2
3set -eu
4
5readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')"
6
7if [ -f .git ]; then
8 cd ..
9 tar -c "${FILES[@]}" "c-toxcore/.git" ".git/modules/c-toxcore" |
10 docker build -f c-toxcore/other/docker/Dockerfile.ci -
11else
12 cd ..
13 tar -c "${FILES[@]}" "c-toxcore/.git" |
14 docker build -f c-toxcore/other/docker/Dockerfile.ci -
15fi