Skip to content

Commit

Permalink
Add mods
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 1, 2024
1 parent f400556 commit b29a081
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [steam_legacy, latest]
branch: [steam_legacy, public]
mod: [
valve,
cstrike
]
include:
- branch: steam_legacy
build-args: APPBRANCH=steam_legacy
- branch: latest
build-args: APPBRANCH=
- mod: valve
depots: "1 4 1006"
- mod: cstrike
depots: "1 4 1006 11"

steps:
- uses: actions/[email protected]
Expand All @@ -38,9 +42,8 @@ jobs:
uses: actions/[email protected]
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.branch }}
restore-keys: |
${{ runner.os }}-buildx-${{ matrix.branch }}
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.branch }}-${{ matrix.mod }}
restore-keys: ${{ runner.os }}-buildx-${{ matrix.branch }}-${{ matrix.mod }}

- name: Log in to Docker Hub
if: github.ref == 'refs/heads/master'
Expand All @@ -57,6 +60,9 @@ jobs:
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ env.DOCKER_IMAGE }}:${{ matrix.branch }}
build-args: ${{ matrix.build-args }}
build-args: |
APPBRANCH=${{ matrix.branch }}
DEPOTS=${{ matrix.depots }}
MOD=${{ matrix.mod }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit b29a081

Please sign in to comment.