You've already forked linuxdeploy-plugin-qt
mirror of
https://github.com/encounter/linuxdeploy-plugin-qt.git
synced 2026-03-30 11:19:03 -07:00
19 lines
465 B
Bash
Executable File
19 lines
465 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -xe
|
|
|
|
old_cwd=$(readlink -f .)
|
|
here=$(readlink -f $(dirname "$0"))
|
|
|
|
DOCKERFILE="$here"/Dockerfile.centos7
|
|
IMAGE=linuxdeploy-build-centos7
|
|
|
|
if [ "$ARCH" == "i386" ]; then
|
|
DOCKERFILE="$DOCKERFILE"-i386
|
|
IMAGE="$IMAGE"-i386
|
|
fi
|
|
|
|
(cd "$here" && docker build -f "$DOCKERFILE" -t "$IMAGE" .)
|
|
|
|
docker run --rm -i -v "$here"/..:/ws:ro -v "$old_cwd":/out -e CI=1 -e OUTDIR_OWNER=$(id -u) "$IMAGE" /bin/bash -xe -c "cd /out && /ws/ci/build-centos7.sh"
|