0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 01:50:46 -05:00

Update build.yaml and Dockerfile.dotnet

This commit is contained in:
Refringe 2024-03-03 16:41:12 -05:00
parent 2c4911c0bc
commit bd3b47862f
No known key found for this signature in database
GPG Key ID: DA8524051241DD36
2 changed files with 6 additions and 10 deletions

View File

@ -129,7 +129,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true' if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: refringe/spt-build-dotnet:0.0.1 image: refringe/spt-build-dotnet:0.0.4
steps: steps:
- name: Clone - name: Clone
run: | run: |
@ -152,13 +152,9 @@ jobs:
- name: Extract Client Version - name: Extract Client Version
run: | run: |
cd ./server-core/project/assets/configs cd ./server-core/project/assets/configs
ClientVersion=$(pwsh -Command "& { CLIENT_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
\$json = Get-Content -Path './core.json' | ConvertFrom-Json echo "Extracted Client Version: $CLIENT_VERSION"
\$version = \$json.compatibleTarkovVersion -split '\.' | Select-Object -Last 1 echo "::set-output name=client_version::$CLIENT_VERSION"
Write-Output \$version
}")
echo "Extracted Client Version: $ClientVersion"
echo "::set-output name=client_version::$ClientVersion"
shell: bash shell: bash
build-launcher: build-launcher:
@ -166,7 +162,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true' if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: refringe/spt-build-dotnet:0.0.1 image: refringe/spt-build-dotnet:0.0.4
steps: steps:
- name: Clone - name: Clone
run: | run: |

View File

@ -3,6 +3,6 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
# Install necessary tools and dependencies (git, zstd, wget, jq, and p7zip-full) # Install necessary tools and dependencies (git, zstd, wget, jq, and p7zip-full)
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y git zstd wget p7zip-full && \ apt-get install -y git zstd wget jq p7zip-full && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*