Skip to content

Commit

Permalink
- UPDATED: Changes to docker images. Thanks @DanielDKnudsen
Browse files Browse the repository at this point in the history
  • Loading branch information
mavproductions committed May 6, 2024
1 parent 23caf4d commit b59de5a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -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)
16 changes: 11 additions & 5 deletions install_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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
+mapgroup mg_active

0 comments on commit b59de5a

Please sign in to comment.