Skip to content

Commit

Permalink
feat: ✨ Support option for Pre-25th Anniversary Builds of valve, `c…
Browse files Browse the repository at this point in the history
…strike` and `czero` (#30)

* build: add auto-labeler and sponsors information (#17)

* Update README.md

* Create sponsors.yml

* Create label.yml

* test: resolve issue thing

* style: remove typo

* chore: update

* build(deps): bump softprops/action-gh-release from 1 to 2 (#18)

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump actions/checkout from 3 to 4 (#19)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: 📝 Improve documentation (#21)

* docs: docker whale image

* Update README.md

* Update README.md

* Update README.md

* docs: add more examples

* docs: add more examples

* docs: improve docs

* Update README.md

* Update README.md

* Update README.md

* test

* Update BUILDING_AN_IMAGE.md

* Update label.yml

* Delete crowbar.png

* Update README.md

* Update sponsors.yml

* docs: more doc improvements/spell checks etc

* Deploying to beta from @ ee94d7c 🚀

* Update sponsors.yml

* Update README.md

* docs: server -> joinable not error

* Update CUSTOM_MODS.md

* Update SERVER_CONFIGS_AND_PLUGINS.md

* Update README.md

* Update README.md

* Update BUG.yml

* docs: fix clipping issue

* build: 🔧 adjust docker-compose.local to docker-compose.build as it more accurately describes its task

* feat: split things into container dir

* docs: shuffle docs around

* Update beta.yml

* Update publish.yml

* Update README.md

* docs: improve REAMDE

* Update README.md

* Update CONTRIBUTING.md

* docs: remove old examples

* docs: cleanup docs

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* docs: more doc examples.

* Update docker-compose.yml

* Update .gitignore

* Update entrypoint.sh

* build(deps): bump anothrNick/github-tag-action from 1.69.0 to 1.70.0 (#24)

Bumps [anothrNick/github-tag-action](https://github.com/anothrnick/github-tag-action) from 1.69.0 to 1.70.0.
- [Release notes](https://github.com/anothrnick/github-tag-action/releases)
- [Commits](anothrNick/github-tag-action@1.69.0...1.70.0)

---
updated-dependencies:
- dependency-name: anothrNick/github-tag-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: 📝 Improved bug report form and added rcon_password example (#26)

* Update BUG.yml

* t

* Update BUG.yml

* Update BUG.yml

* docs: include private sponsors [skip ci]

* chore: Update sponsors 💖 [skip ci]

* docs: update sponsors again [skip ci]

* chore: Update sponsors 💖 [skip ci]

* Update sponsors.yml

* chore: Update sponsors 💖 [skip ci]

* chore: Update sponsors 💖 [skip ci]

* feat: support titles with legacy beta versions, ie valve-legacy, cstrike-legacy and czero-legacy

* fix: properly pass in flags

* fix: adjust how flags are passed in

* build: 🔧 Rename FLAGS -> FLAG to mirror GAME

* fix: pass in correct game name

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JamesIves <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent a22232f commit 50d778e
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 19 deletions.
44 changes: 37 additions & 7 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ jobs:
id-token: write
strategy:
matrix:
game: [cstrike, valve, czero, dmc, gearbox, ricochet, dod, tfc]
game:
[
cstrike,
cstrike-legacy,
valve,
valve-legacy,
czero,
czero-legacy,
dmc,
gearbox,
ricochet,
dod,
tfc,
]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
Expand All @@ -36,21 +49,35 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set GAME environment variable 🎮
working-directory: ./container
run: |
GAME=${{ matrix.game }}
GAME=${GAME%-legacy}
echo "GAME=$GAME" >> $GITHUB_ENV
- name: Replace fallback value in Dockerfile and entrypoint.sh
working-directory: ./container
run: |
sed -i "s/\${GAME:-valve}/\${GAME:-${{ matrix.game }}}/g" Dockerfile
sed -i "s/\${GAME:-valve}/\${GAME:-${{ matrix.game }}}/g" entrypoint.sh
sed -i "s/\${GAME:-valve}/\${GAME:-${{ env.GAME }}}/g" Dockerfile
sed -i "s/\${GAME:-valve}/\${GAME:-${{ env.GAME }}}/g" entrypoint.sh
- name: Configure SteamCMD to install the legacy engine version 🚒
if: contains(matrix.game, 'legacy')
run: echo "FLAG=-beta steam_legacy" >> $GITHUB_ENV

- name: Build and Push Docker Image to DockerHub 🐳
uses: docker/build-push-action@v6
env:
GAME: ${{ matrix.game }}
GAME: ${{ env.GAME }}
FLAG: ${{ env.FLAG }}
with:
context: ./container
push: true
tags: jives/hlds:${{ matrix.game }}-beta
build-args: GAME=${{ matrix.game }}
build-args: |
GAME=${{ env.GAME }}
FLAG=${{ env.FLAG }}
- name: Set repo owner to lowercase
id: repo_owner
Expand All @@ -59,9 +86,12 @@ jobs:
- name: Build and Push Docker Image to GitHub Container Registry 🐳
uses: docker/build-push-action@v6
env:
GAME: ${{ matrix.game }}
GAME: ${{ env.GAME }}
FLAG: ${{ env.FLAG }}
with:
context: ./container
push: true
tags: ghcr.io/${{ steps.repo_owner.outputs.repo_owner }}/hlds:${{ matrix.game }}-beta
build-args: GAME=${{ matrix.game }}
build-args: |
GAME=${{ env.GAME }}
FLAG=${{ env.FLAG }}
43 changes: 37 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
WITH_V: true
DEFAULT_BUMP: patch
DRY_RUN: true

build:
needs: version
runs-on: ubuntu-latest
Expand All @@ -32,7 +33,20 @@ jobs:
id-token: write
strategy:
matrix:
game: [cstrike, valve, czero, dmc, gearbox, ricochet, dod, tfc]
game:
[
cstrike,
cstrike-legacy,
valve,
valve-legacy,
czero,
czero-legacy,
dmc,
gearbox,
ricochet,
dod,
tfc,
]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
Expand All @@ -55,23 +69,37 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set GAME environment variable 🎮
working-directory: ./container
run: |
GAME=${{ matrix.game }}
GAME=${GAME%-legacy}
echo "GAME=$GAME" >> $GITHUB_ENV
- name: Replace fallback value in Dockerfile and entrypoint.sh
working-directory: ./container
run: |
sed -i "s/\${GAME:-valve}/\${GAME:-${{ matrix.game }}}/g" Dockerfile
sed -i "s/\${GAME:-valve}/\${GAME:-${{ matrix.game }}}/g" entrypoint.sh
sed -i "s/\${GAME:-valve}/\${GAME:-${{ env.GAME }}}/g" Dockerfile
sed -i "s/\${GAME:-valve}/\${GAME:-${{ env.GAME }}}/g" entrypoint.sh
- name: Configure SteamCMD to install the legacy engine version 🚒
if: contains(matrix.game, 'legacy')
run: echo "FLAG=-beta steam_legacy" >> $GITHUB_ENV

- name: Build and Push Docker Image to DockerHub 🐳
uses: docker/build-push-action@v6
env:
GAME: ${{ matrix.game }}
GAME: ${{ env.GAME }}
FLAG: ${{ env.FLAG }}
with:
context: ./container
push: true
tags: |
jives/hlds:${{ matrix.game }}
jives/hlds:${{ matrix.game }}-${{ needs.version.outputs.version }}
build-args: GAME=${{ matrix.game }}
build-args: |
GAME=${{ env.GAME}}
FLAG=${{ env.FLAG }}
- name: Set repo owner to lowercase
id: repo_owner
Expand All @@ -81,13 +109,16 @@ jobs:
uses: docker/build-push-action@v6
env:
GAME: ${{ matrix.game }}
FLAG: ${{ env.FLAG }}
with:
context: ./container
push: true
tags: |
ghcr.io/${{ steps.repo_owner.outputs.repo_owner }}/hlds:${{ matrix.game }}
ghcr.io/${{ steps.repo_owner.outputs.repo_owner }}/hlds:${{ matrix.game }}-${{ needs.version.outputs.version }}
build-args: GAME=${{ matrix.game }}
build-args: |
GAME=${{ env.GAME }}
FLAG=${{ env.FLAG }}
publish:
needs: build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
with:
token: ${{ secrets.PAT }}
file: "README.md"
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="25px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
template: '<a href="https://github.com/{{{ login }}}"><img src="{{ avatarUrl }}" width="25px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
active-only: false
include-private: true

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Special thank you to all the past and present [GitHub Sponsors](https://github.com/sponsors/JamesIves) 💖.

<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https://github.com/Chooksta69.png" width="25px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="25px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https://github.com/jonathan-milan-pollock.png" width="25px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https://github.com/raoulvdberge.png" width="25px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https://github.com/robjtede.png" width="25px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https://github.com/hadley.png" width="25px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https://github.com/kevinchalet.png" width="25px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https://github.com/Yousazoe.png" width="25px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/github"><img src="https://github.com/github.png" width="25px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https://github.com/annegentle.png" width="25px" alt="annegentle" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https://github.com/planetoftheweb.png" width="25px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https://github.com/melton1968.png" width="25px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https://github.com/szepeviktor.png" width="25px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https://github.com/sckott.png" width="25px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https://github.com/provinzkraut.png" width="25px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https://github.com/electrovir.png" width="25px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https://github.com/Griefed.png" width="25px" alt="Griefed" /></a>&nbsp;&nbsp;<a href="https://github.com/MontezumaIves"><img src="https://github.com/MontezumaIves.png" width="25px" alt="MontezumaIves" /></a>&nbsp;&nbsp;<!-- sponsors -->
<!-- sponsors --><a href="https://github.com/Chooksta69"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;64383803?v&#x3D;4" width="25px" alt="Chooksta69" /></a>&nbsp;&nbsp;<a href="https://github.com/MattWillFlood"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;56543497?u&#x3D;1be6fe938a7cdd414907bf0d2598e378783873f3&amp;v&#x3D;4" width="25px" alt="MattWillFlood" /></a>&nbsp;&nbsp;<a href="https://github.com/jonathan-milan-pollock"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;29420046?u&#x3D;4abd4069b4fef966d4ce3f6fbff4f14f2bc6080f&amp;v&#x3D;4" width="25px" alt="jonathan-milan-pollock" /></a>&nbsp;&nbsp;<a href="https://github.com/raoulvdberge"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;10358424?u&#x3D;fccabb4473476bf181b78f7442ec904cd6c7abee&amp;v&#x3D;4" width="25px" alt="raoulvdberge" /></a>&nbsp;&nbsp;<a href="https://github.com/robjtede"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;3316789?u&#x3D;5b6d5b45b7a2755584d2c57ecabf56f3eb292e21&amp;v&#x3D;4" width="25px" alt="robjtede" /></a>&nbsp;&nbsp;<a href="https://github.com/hadley"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;4196?u&#x3D;381fe2cce7ecc86993a19168bcf6638e9805326a&amp;v&#x3D;4" width="25px" alt="hadley" /></a>&nbsp;&nbsp;<a href="https://github.com/kevinchalet"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;6998306?u&#x3D;71c40a231984c198d230974e6536b1aea5caf756&amp;v&#x3D;4" width="25px" alt="kevinchalet" /></a>&nbsp;&nbsp;<a href="https://github.com/Yousazoe"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;58163275?u&#x3D;53e8c48f203d62424b0497a84851d9546328e518&amp;v&#x3D;4" width="25px" alt="Yousazoe" /></a>&nbsp;&nbsp;<a href="https://github.com/github"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;9919?v&#x3D;4" width="25px" alt="github" /></a>&nbsp;&nbsp;<a href="https://github.com/annegentle"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;501981?u&#x3D;155ca47d6829300d17a5454f0839f341424ecf8d&amp;v&#x3D;4" width="25px" alt="annegentle" /></a>&nbsp;&nbsp;<a href="https://github.com/planetoftheweb"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;216426?u&#x3D;f1a819a7d5f75b8034c122cbdba7bdcb38d0e1c9&amp;v&#x3D;4" width="25px" alt="planetoftheweb" /></a>&nbsp;&nbsp;<a href="https://github.com/melton1968"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;976548?v&#x3D;4" width="25px" alt="melton1968" /></a>&nbsp;&nbsp;<a href="https://github.com/szepeviktor"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;952007?u&#x3D;18bbc00cedf197bc543f479b4e39f09c0260ca3d&amp;v&#x3D;4" width="25px" alt="szepeviktor" /></a>&nbsp;&nbsp;<a href="https://github.com/sckott"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;577668?u&#x3D;c54eb1ce08ff22365e094559a109a12437bdca40&amp;v&#x3D;4" width="25px" alt="sckott" /></a>&nbsp;&nbsp;<a href="https://github.com/provinzkraut"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;25355197?u&#x3D;634fd238d93f44c6f522dda72068fc82941564c4&amp;v&#x3D;4" width="25px" alt="provinzkraut" /></a>&nbsp;&nbsp;<a href="https://github.com/electrovir"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;1205860?u&#x3D;61c2513bc24ecc2a909817adc701746b94fed939&amp;v&#x3D;4" width="25px" alt="electrovir" /></a>&nbsp;&nbsp;<a href="https://github.com/Griefed"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;44273438?u&#x3D;b44cb19075c1a93904507a69067fc55bc66360a9&amp;v&#x3D;4" width="25px" alt="Griefed" /></a>&nbsp;&nbsp;<a href="https://github.com/MontezumaIves"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;78580739?u&#x3D;b65aecfacc32ed08463bd50dae61d8a048f618ec&amp;v&#x3D;4" width="25px" alt="MontezumaIves" /></a>&nbsp;&nbsp;<a href="https://github.com/"><img src="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;JamesIves&#x2F;github-sponsors-readme-action&#x2F;dev&#x2F;.github&#x2F;assets&#x2F;placeholder.png" width="25px" alt="" /></a>&nbsp;&nbsp;<a href="https://github.com/"><img src="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;JamesIves&#x2F;github-sponsors-readme-action&#x2F;dev&#x2F;.github&#x2F;assets&#x2F;placeholder.png" width="25px" alt="" /></a>&nbsp;&nbsp;<!-- sponsors -->

## Getting Started 🚀

Expand Down Expand Up @@ -41,6 +41,9 @@ docker run -d \
> - `jives/hlds:ricohet` ([Ricochet](https://store.steampowered.com/app/60/Ricochet/))
> - `jives/hlds:dod` ([Day of Defeat](https://store.steampowered.com/app/30/Day_of_Defeat/))
> - `jives/hlds:tfc` ([Team Fortress Classic](https://store.steampowered.com/app/20/Team_Fortress_Classic/))
> - `jives/hlds:valve-legacy` ([Half-Life Deathmatch](https://store.steampowered.com/app/70/HalfLife/)) ([Pre-25th Anniversary Build](https://www.half-life.com/en/halflife25))
> - `jives/hlds:cstrike-legacy` ([Counter-Strike](https://store.steampowered.com/app/10/CounterStrike/)) ([Pre-25th Anniversary Build](https://www.half-life.com/en/halflife25))
> - `jives/hlds:czero-legacy` ([Counter-Strike Condition Zero](https://store.steampowered.com/app/80/CounterStrike_Condition_Zero/)) ([Pre-25th Anniversary Build](https://www.half-life.com/en/halflife25))
>
> Container images are alternatively available on the [GitHub Container Registry](https://github.com/JamesIves/hlds-docker/pkgs/container/hlds).
Expand Down
8 changes: 8 additions & 0 deletions container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ LABEL org.opencontainers.image.source="https://github.com/jamesives/hlds-docker"
ARG GAME=valve
ENV GAME ${GAME}

# Sets an environment variable for any additional flag that should be passed to the SteamCMD installer.
# Default is an empty string. This get replaced when building the image with --build-arg FLAG=<FLAG>
# For example, you may set this to "-beta steam_legacy".
ARG FLAG
ENV FLAG ${FLAG}

RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y --no-install-recommends curl rsync file libc6:i386 lib32stdc++6 ca-certificates && \
Expand All @@ -32,7 +38,9 @@ WORKDIR /opt/steam
COPY ./hlds.txt /opt/steam

# Replaces $GAME with the requested mod to install in hlds.txt.
# Additionally replaces $FLAG with any additional FLAG that should be passed to the SteamCMD installer to support betas.
RUN sed -i "s/\$GAME/${GAME}/g" /opt/steam/hlds.txt
RUN sed -i "s/\$FLAG/${FLAG}/g" /opt/steam/hlds.txt

RUN curl -v -sL media.steampowered.com/client/installer/steamcmd_linux.tar.gz | tar xzvf - && \
file /opt/steam/linux32/steamcmd && \
Expand Down
2 changes: 2 additions & 0 deletions container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Before continuing to the following steps, verify that the environment variable i
> - `ricohet` ([Ricochet](https://store.steampowered.com/app/60/Ricochet/))
> - `dod` ([Day of Defeat](https://store.steampowered.com/app/30/Day_of_Defeat/))
> - `tfc` ([Team Fortress Classic](https://store.steampowered.com/app/20/Team_Fortress_Classic/))
>
> To install a specific sub version, such as a beta, you can utilize the `FLAG` environment variable to pass arbitrary command flags to Steam CMD. For example, `export FLAG=-beta steam_legacy` can be used to get a [Pre-25th Anniversary build](https://www.half-life.com/en/halflife25) of some titles.
3. Navigate to the `container` folder (where this README file is) and build the image.

Expand Down
2 changes: 2 additions & 0 deletions container/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
context: .
args:
- GAME=${GAME}
- FLAG=${FLAG}
volumes:
- "./config:/temp/config"
- "./mods:/temp/mods"
Expand All @@ -13,4 +14,5 @@ services:
- "26900:2690/udp"
environment:
- GAME=${GAME}
- FLAG=${FLAG}
command: +maxplayers 12 +log on
6 changes: 3 additions & 3 deletions container/hlds.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
force_install_dir ./hlds
login anonymous
app_set_config 90 mod $GAME
app_update 90 validate
app_update 90 validate
app_update 90 validate
app_update 90 $FLAG validate
app_update 90 $FLAG validate
app_update 90 $FLAG validate
quit
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ services:
# 🔧 jives/hlds:ricochet (Ricochet)
# 🔧 jives/hlds:dod (Day of Defeat)
# 🔧 jives/hlds:tfc (Team Fortress Classic)
#
# 🔧 jives/hlds:valve-legacy (Half-Life Deathmatch) (Pre 25th Anniversary Edition)
# 🔧 jives/hlds:cstrike-legacy (Counter-Strike) (Pre 25th Anniversary Edition)
# 🔧 jives/hlds:czero-legacy (Counter-Strike: Condition Zero) (Pre 25th Anniversary Edition)
image: jives/hlds:cstrike
# 📣 Learn more about these volumes in the advanced setup guides: https://github.com/JamesIves/hlds-docker?tab=readme-ov-file#advanced-setup-%EF%B8%8F
volumes:
Expand All @@ -21,7 +25,7 @@ services:
- "26900:2690/udp"
environment:
- GAME=${GAME}
# 📣 Modify your server startup commands here, you can add more flags as needed (see: https://developer.valvesoftware.com/wiki/Half-Life_Dedicated_Server),
# 📣 Modify your server startup commands here, you can add more FLAG as needed (see: https://developer.valvesoftware.com/wiki/Half-Life_Dedicated_Server),
# 📣 Remember: Stating map is based on the game, and will likely be different between images.
# 📣 You should also modify the rcon_password value so you can use server admin commands.
command: +log on +rcon_password "changeme" +maxplayers 12 +map cs_italy

0 comments on commit 50d778e

Please sign in to comment.