diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..90879bab --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag cs2-modded-server:$(date +%s) diff --git a/install_docker.sh b/install_docker.sh index 65bdfba5..3a4f8844 100644 --- a/install_docker.sh +++ b/install_docker.sh @@ -126,11 +126,17 @@ sudo -u $user /steamcmd/steamcmd.sh \ +quit cd /home/${user} +echo "/home/user !!!!!!!" -mkdir -p /home/${user}/.steam/sdk32/ -ln -s /steamcmd/linux32/steamclient.so /home/${user}/.steam/sdk32/ -mkdir -p /home/${user}/.steam/sdk64/ -ln -s /steamcmd/linux64/steamclient.so /home/${user}/.steam/sdk64/ +# mkdir -p /root/.steam/sdk32/ +# ln -sf /steamcmd/linux32/steamclient.so /root/.steam/sdk32/ +# mkdir -p /root/.steam/sdk64/ +# ln -sf /steamcmd/linux64/steamclient.so /root/.steam/sdk64/ + +# mkdir -p /home/${user}/.steam/sdk32/ +# ln -sf /steamcmd/linux32/steamclient.so /home/${user}/.steam/sdk32/ +# mkdir -p /home/${user}/.steam/sdk64/ +# ln -sf /steamcmd/linux64/steamclient.so /home/${user}/.steam/sdk64/ echo "Installing mods" cp -R /home/game/csgo/ /home/${user}/cs2/game/ @@ -198,4 +204,4 @@ sudo -u $user /home/steam/cs2/game/bin/linuxsteamrt64/cs2 \ +sv_setsteamaccount $STEAM_ACCOUNT \ +game_type 0 \ +game_mode 0 \ - +mapgroup mg_active \ No newline at end of file + +mapgroup mg_active