Skip to content

Commit

Permalink
build: 🔧 Add build args to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jun 13, 2024
1 parent 71ddd83 commit bd72912
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
context: .
push: true
tags: jives/hlds:cstrike
build-args: GAME=cstrike

- name: Build Docker Image for Half-Life 🐳
uses: docker/build-push-action@v5
Expand All @@ -43,6 +44,7 @@ jobs:
context: .
push: true
tags: jives/hlds:valve
build-args: GAME=valve

- name: Build Docker Image for Counter-Strike Condition Zero 🐳
uses: docker/build-push-action@v5
Expand All @@ -52,6 +54,7 @@ jobs:
context: .
push: true
tags: jives/hlds:czero
build-args: GAME=czero

- name: Build Docker Image for Death Match Classic 🐳
uses: docker/build-push-action@v5
Expand All @@ -61,6 +64,7 @@ jobs:
context: .
push: true
tags: jives/hlds:dmc
build-args: GAME=dmc

- name: Build Docker Image for Half-Life Opposing Force 🐳
uses: docker/build-push-action@v5
Expand All @@ -70,6 +74,7 @@ jobs:
context: .
push: true
tags: jives/hlds:gearbox
build-args: GAME=gearbox

- name: Build Docker Image for Ricochet 🐳
uses: docker/build-push-action@v5
Expand All @@ -79,6 +84,7 @@ jobs:
context: .
push: true
tags: jives/hlds:ricochet
build-args: GAME=richochet

- name: Build Docker Image for Day of Defeat 🐳
uses: docker/build-push-action@v5
Expand All @@ -88,6 +94,7 @@ jobs:
context: .
push: true
tags: jives/hlds:dod
build-args: GAME=dod

- name: Build Docker Image for Team Fortress Classic 🐳
uses: docker/build-push-action@v5
Expand All @@ -97,6 +104,7 @@ jobs:
context: .
push: true
tags: jives/hlds:tfc
build-args: GAME=tfc

- name: Bump Version and Create Tag 🏷️
id: create_tag
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
GAME: cstrike
with:
context: .
build-args: GAME=cstrike
2 changes: 0 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ then
rsync --chown=steam:steam /temp/hlds/* /opt/steam/hlds/$GAME
fi



echo Starting Half-Life Dedicated Server...

./hlds_run "-game $GAME $@"

0 comments on commit bd72912

Please sign in to comment.