0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 17:10:45 -05:00

Update build.yaml and Dockerfiles

This commit is contained in:
Refringe 2024-03-04 21:46:32 -05:00
parent 05a42cfb67
commit bc80debbd3
No known key found for this signature in database
GPG Key ID: DA8524051241DD36
4 changed files with 22 additions and 8 deletions

View File

@ -40,7 +40,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest
container:
image: refringe/spt-build-server:0.0.1
image: refringe/spt-build-server:0.0.2
steps:
- name: Clone
run: |
@ -117,6 +117,8 @@ jobs:
BUILD_TYPE="${{ steps.build-type.outputs.build_type }}"
echo "Running build for $BUILD_TYPE"
npm run build:$BUILD_TYPE
echo "Built..."
tree -C ./server/project/build
- name: Archive Build
uses: actions/upload-artifact@v3
@ -130,7 +132,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest
container:
image: refringe/spt-build-dotnet:0.0.5
image: refringe/spt-build-dotnet:0.0.6
steps:
- name: Clone
run: |
@ -198,7 +200,8 @@ jobs:
run: |
cd ./modules/project
dotnet build
ls -la Build
echo "Built..."
tree -C ./modules/project/Build
shell: bash
- name: Archive Build
@ -213,7 +216,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest
container:
image: refringe/spt-build-dotnet:0.0.5
image: refringe/spt-build-dotnet:0.0.6
steps:
- name: Clone
run: |

View File

@ -4,8 +4,15 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
# Configure Node.js v20 repository
RUN curl -fsSL https://deb.nodesource.com/setup_20.10 | bash
# Install necessary tools and dependencies (git, zstd, wget, jq, and p7zip-full)
# Install necessary tools and dependencies
# - git (duh)
# - zstd (caching action dependancy)
# - wget (downloading module packages)
# - jq (fetching data from JSON files)
# - p7zip-full (extracting archives)
# - nodejs (artifact action dependancy)
# - tree (pretty print build directory structure)
RUN apt-get update && \
apt-get install -y git zstd wget jq p7zip-full nodejs && \
apt-get install -y git zstd wget jq p7zip-full nodejs tree && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

View File

@ -1,7 +1,11 @@
# Use the Node v20.10.0 base image
FROM node:20.10.0
# Install necessary tools and dependencies (git, git-lfs, and zstd)
# Install necessary tools and dependencies
# - git (duh)
# - git-lfs (duh)
# - zstd (caching action dependancy)
# - tree (pretty print build directory structure)
RUN apt-get update && \
apt-get install -y git git-lfs zstd && \
apt-get clean && \

View File

@ -75,7 +75,7 @@ Be sure to update the version number to the next available version before buildi
```
# Build and push the spt-build-server Docker image to the Docker Hub
docker build -t refringe/spt-build-server:0.0.0 -t refringe/spt-build-server:latest -f Dockerfile.server .
docker build -t refringe/spt-build-server:0.0.0 -t refringe/spt-build-server:latest -f Dockerfile.node .
docker push refringe/spt-build-server --all-tags
# Build and push the spt-build-dotnet Docker image to the Docker Hub