forked from DL-Mirrors/termux-docker
build-all.sh/run.sh: update image address to kcubeterm (#20)
This commit is contained in:
@@ -26,19 +26,19 @@ esac
|
||||
|
||||
for arch in "${ARCHITECTURES[@]}"; do
|
||||
$SUDO $OCI build \
|
||||
-t 'docker.io/xeffyr/termux:'"$arch" \
|
||||
-t 'docker.io/kcubeterm/termux:'"$arch" \
|
||||
-f Dockerfile \
|
||||
--build-arg BOOTSTRAP_ARCH="$arch" \
|
||||
--build-arg SYSTEM_TYPE="$SYSTEM_TYPE" \
|
||||
.
|
||||
if [ "${1-}" = "publish" ]; then
|
||||
$SUDO $OCI push 'docker.io/xeffyr/termux:'"$arch"
|
||||
$SUDO $OCI push 'docker.io/kcubeterm/termux:'"$arch"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$SYSTEM_TYPE" = "x86" ]; then
|
||||
$SUDO $OCI tag docker.io/xeffyr/termux:i686 docker.io/xeffyr/termux:latest
|
||||
$SUDO $OCI tag docker.io/kcubeterm/termux:i686 docker.io/kcubeterm/termux:latest
|
||||
if [ "${1-}" = "publish" ]; then
|
||||
$SUDO $OCI push 'docker.io/xeffyr/termux:latest'
|
||||
$SUDO $OCI push 'docker.io/kcubeterm/termux:latest'
|
||||
fi
|
||||
fi
|
||||
|
||||
4
run.sh
4
run.sh
@@ -6,10 +6,10 @@ esac
|
||||
|
||||
if [ "$(basename "$0")" = "run-x86_64.sh" ]; then
|
||||
CONTAINER_NAME="termux-x86_64"
|
||||
DOCKER_IMAGE_NAME="docker.io/xeffyr/termux:x86_64"
|
||||
DOCKER_IMAGE_NAME="docker.io/kcubeterm/termux:x86_64"
|
||||
else
|
||||
CONTAINER_NAME="termux-i686"
|
||||
DOCKER_IMAGE_NAME="docker.io/xeffyr/termux:latest"
|
||||
DOCKER_IMAGE_NAME="docker.io/kcubeterm/termux:latest"
|
||||
fi
|
||||
|
||||
docker start "$CONTAINER_NAME" > /dev/null 2> /dev/null || {
|
||||
|
||||
Reference in New Issue
Block a user