diff options
Diffstat (limited to 'ci')
-rw-r--r-- | ci/_docker_script.sh | 10 | ||||
-rw-r--r-- | ci/build.sh | 22 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ci/_docker_script.sh b/ci/_docker_script.sh new file mode 100644 index 0000000..ba5065d --- /dev/null +++ b/ci/_docker_script.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +cd /mnt/curl/ +git config --global --add safe.directory "*" +rm -rf ./sm-1.11 +git clone https://github.com/alliedmodders/sourcemod --branch 1.11-dev sm-1.11 --recursive +rm -rf ./mm-1.11 +git clone https://github.com/alliedmodders/metamod-source --branch 1.11-dev mm-1.11 --recursive +make clean +make diff --git a/ci/build.sh b/ci/build.sh new file mode 100644 index 0000000..1de802e --- /dev/null +++ b/ci/build.sh @@ -0,0 +1,22 @@ +sdfasd#!/bin/bash + +# we do this so that we can be agnostic about where we're invoked from +# meaning you can exec this script anywhere and it should work the same +thisiswhereiam=${BASH_SOURCE[0]} +# this should be /whatever/directory/structure/Open-Fortress-Source +script_folder=$( cd -- "$( dirname -- "${thisiswhereiam}" )" &> /dev/null && pwd ) +# this should be /whatever/directory/structure/[sdkmod-source]/build +build_dir="build" + +echo ${thisiswhereiam} +echo ${script_folder} +docker run -it \ +--mount type=bind,source=${script_folder}/../,target=/mnt/curl \ +registry.gitlab.steamos.cloud/steamrt/sniper/sdk \ +bash +#/mnt/curl/ci/_docker_script.sh + + + +# +# debian:11-slim \ |