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

Update build.yaml and Dockerfile.node

This commit is contained in:
Refringe 2024-03-06 16:10:05 -05:00
parent f236275cc5
commit dada9fe1ec
No known key found for this signature in database
GPG Key ID: DA8524051241DD36
2 changed files with 10 additions and 20 deletions

View File

@ -40,7 +40,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-server:0.0.6 image: refringe/spt-build-server:0.0.5
steps: steps:
- name: Clone - name: Clone
run: | run: |
@ -243,7 +243,7 @@ jobs:
needs: [build-server, build-modules, build-launcher] needs: [build-server, build-modules, build-launcher]
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: refringe/spt-build-server:0.0.6 image: refringe/spt-build-server:0.0.5
steps: steps:
- name: Create Directory - name: Create Directory
run: mkdir -p /workspace/refringe/Build/release run: mkdir -p /workspace/refringe/Build/release
@ -290,12 +290,9 @@ jobs:
ls -la /workspace/refringe/Build/release.7z ls -la /workspace/refringe/Build/release.7z
- name: Upload Release - name: Upload Release
run: | uses: Difegue/action-megacmd@master
mega-login $MEGA_EMAIL $MEGA_PASSWORD with:
mega-whoami args: put /workspace/refringe/Build/release.7z /spt-release/SPT-3.8.0-28965.7z
# Name needs to be updated.
mega-put /workspace/refringe/Build/release.7z /spt-release/SPT-3.8.0-28965.7z
mega-export -a /spt/SPT-3.8.0-28965.7z --expire=14400M | awk '{print $4}'
env: env:
MEGA_EMAIL: ${{ secrets.MEGA_EMAIL }} USERNAME: ${{ secrets.MEGA_EMAIL }}
MEGA_PASSWORD: ${{ secrets.MEGA_PASSWORD }} PASSWORD: ${{ secrets.MEGA_PASSWORD }}

View File

@ -4,17 +4,10 @@ FROM node:20.10.0
# Install necessary tools and dependencies # Install necessary tools and dependencies
# - git (duh) # - git (duh)
# - git-lfs (duh) # - git-lfs (duh)
# - zstd (caching action dependency) # - zstd (caching action dependancy)
# - tree (pretty print build directory structure) # - tree (pretty print build directory structure)
# - wget (to download megacmd)
# - gnupg (for adding MEGA.nz repo keys)
# - software-properties-common (adding repo)
# - p7zip-full (the goat) # - p7zip-full (the goat)
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y git git-lfs zstd tree wget gnupg software-properties-common p7zip-full && \ apt-get install -y git git-lfs zstd tree p7zip-full && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Install the MegaCMD client
RUN wget https://mega.nz/linux/repo/Debian_12/amd64/megacmd-Debian_12_amd64.deb && \
dpkg -i megacmd-Debian_12_amd64.deb || apt-get install -fy && \
rm -f megacmd-Debian_12_amd64.deb