mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-23 15:12:24 +00:00
22 lines
441 B
Bash
Executable File
22 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
STAGE="${1-cmake}"
|
|
|
|
readarray -t FILES <<<"$(git ls-files | sed -e 's,^,c-toxcore/,')"
|
|
|
|
FILES+=(c-toxcore/.git)
|
|
|
|
if [ -f .git ]; then
|
|
FILES+=(.git/modules/c-toxcore)
|
|
fi
|
|
|
|
cd ..
|
|
tar -c "${FILES[@]}" |
|
|
docker build -f "c-toxcore/other/docker/travis/Dockerfile" \
|
|
-t localbuild/travis:1.0.0 -
|
|
tar -c "${FILES[@]}" |
|
|
docker build -f "c-toxcore/other/docker/$STAGE/Dockerfile" \
|
|
-t "localbuild/$STAGE:1.0.0" -
|