Skip to content

Commit

Permalink
test: add concucrrency
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Oct 3, 2024
1 parent 05533bb commit 1d4ec4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build:
name: Build and Validate 🏁
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}
env:
GAME: cstrike
steps:
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
- name: Run Docker Container 🐳
run: |
cd ./container
docker run \
docker run -d -ti \
--name hlds ${{ env.image_id }} \
-v "$(pwd)/config:/temp/config" \
-v "$(pwd)/mods:/temp/mods" \
Expand Down
14 changes: 2 additions & 12 deletions container/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh

GAME=${GAME:-valve}
VERSION=${VERSION:-custom}
IMAGE=${IMAGE:-custom}
Expand All @@ -7,28 +8,17 @@ if echo "$@" | grep -qv "+map"; then
echo -e "\e[33mWarning: No +map specified in the command. Server will start but may not be joinable.\e[0m"
fi

# Debug: List contents of temp directories
echo "Listing contents of /temp/mods:"
ls -l /temp/mods
echo "Listing contents of /temp/config:"
ls -l /temp/config

# Push mods and config files from their temp directories to the server directories.
if [ -d /temp/mods ]
then
rsync --recursive --update --chown=steam:steam /temp/mods/* /opt/steam/hlds
fi

if [ -d /temp/config ]
then
rsync --recursive --update --chown=steam:steam /temp/config/* /opt/steam/hlds/$GAME
fi

# Debug: List contents of target directories after rsync
echo "Listing contents of /opt/steam/hlds:"
ls -l /opt/steam/hlds
echo "Listing contents of /opt/steam/hlds/$GAME:"
ls -l /opt/steam/hlds/$GAME


echo "
..::::::..
Expand Down

0 comments on commit 1d4ec4d

Please sign in to comment.