summaryrefslogtreecommitdiff
path: root/docker_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker_build.sh')
-rwxr-xr-xdocker_build.sh18
1 files changed, 18 insertions, 0 deletions
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