summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rwxr-xr-xdocker_build.sh18
2 files changed, 19 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index fca5eed..711fb71 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -42,7 +42,7 @@ RUN apt-get install -y\
USER root
WORKDIR /
-RUN git clone https://gitlab.com/themanaworld/manaplus/docker-windows-builder.git opt/
+RUN git clone https://git.themanaworld.org/${CI_PROJECT_NAMESPACE}/docker-windows-builder.git opt/
RUN rm -rf /opt/.git/
RUN mv opt/* /
diff --git a/docker_build.sh b/docker_build.sh
new file mode 100755
index 0000000..1bdb617
--- /dev/null
+++ b/docker_build.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+CI_MODE="release"
+if [[ "$CI_PROJECT_NAMESPACE" == "" ]]; then
+ if [[ $1 == "test" ]]; then
+ export CI_PROJECT_NAMESPACE="jak1"
+ export CI_MODE="test"
+ else
+ export CI_PROJECT_NAMESPACE="mana"
+ fi
+else
+ export CI_PROJECT_NAMESPACE="mana"
+fi
+
+echo "[build] mode: $CI_MODE"
+echo "[build] repo: https://git.themanaworld.org/${CI_PROJECT_NAMESPACE}/docker-windows-builder.git"
+# TODO: add mode 'local'
+# 1.0.1 is the latest, may using commit sha later, in case thats possible *shrugs*
+docker build -t jak891/docker-windows-builder:1.0.1 . \ No newline at end of file