summaryrefslogtreecommitdiff
path: root/other/docker/run-ci
blob: 9005cfbd4dba601c3dcab97ad8d721277983ed7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -eu

readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')"

if [ -f .git ]; then
  cd ..
  tar -c "${FILES[@]}" "c-toxcore/.git" ".git/modules/c-toxcore" |
    docker build -f c-toxcore/other/docker/Dockerfile.ci -
else
  cd ..
  tar -c "${FILES[@]}" "c-toxcore/.git" |
    docker build -f c-toxcore/other/docker/Dockerfile.ci -
fi