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

Update build.yaml and Dockerfile.dotnet

This commit is contained in:
Refringe 2024-03-03 14:25:18 -05:00
parent d0bdde28bb
commit 321c9eb7b1
No known key found for this signature in database
GPG Key ID: 64E03E5F892C6F9E
2 changed files with 5 additions and 5 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.2 image: refringe/spt-build-dotnet:0.0.3
steps: steps:
- name: Clone - name: Clone
run: | run: |
@ -152,8 +152,8 @@ jobs:
- name: Extract Client Version - name: Extract Client Version
run: | run: |
cd ./server-core/project/assets/configs cd ./server-core/project/assets/configs
CLIENT_VERSION=$(python3 -c "import json; print(json.load(open('core.json'))['compatibleTarkovVersion'].split('.')[-1])") CLIENT_VERSION=$(pwsh -Command "& {(\$json = Get-Content -Path './core.json' | ConvertFrom-Json); \$json.compatibleTarkovVersion.Split('.')[-1]}")
echo "Client Version: $CLIENT_VERSION" echo "Extracted Client Version: $CLIENT_VERSION"
echo "::set-output name=client_version::$CLIENT_VERSION" echo "::set-output name=client_version::$CLIENT_VERSION"
shell: bash shell: bash
@ -162,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.2 image: refringe/spt-build-dotnet:0.0.3
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 jq p7zip-full && \ apt-get install -y git zstd wget p7zip-full && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*