mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-12 20:50:45 -05:00
Add client module package download step
This commit is contained in:
parent
bd3b47862f
commit
3b5962c550
@ -146,17 +146,38 @@ jobs:
|
||||
echo "project/assets/configs/core.json" >> .git/info/sparse-checkout
|
||||
git fetch --depth=1 origin 3.8.0-BE
|
||||
git checkout FETCH_HEAD
|
||||
ls -la
|
||||
ls -la project/assets/configs
|
||||
shell: bash
|
||||
|
||||
- name: Extract Client Version
|
||||
run: |
|
||||
cd ./server-core/project/assets/configs
|
||||
CLIENT_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
||||
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
||||
CLIENT_VERSION=${FULL_VERSION##*.}
|
||||
echo "Extracted Client Version: $CLIENT_VERSION"
|
||||
echo "::set-output name=client_version::$CLIENT_VERSION"
|
||||
shell: bash
|
||||
|
||||
- name: Download Client Module Package
|
||||
run: |
|
||||
DIR_MANAGED="./modules/project/Shared/Managed"
|
||||
DOWNLOAD_PATH="$DIR_MANAGED/${{ needs.fetch-server-core-config.outputs.client_version }}.zip"
|
||||
DOWNLOAD_URL="$MODULE_DOMAIN/${{ needs.fetch-server-core-config.outputs.client_version }}.zip"
|
||||
echo "Downloading Client Module Package from $DOWNLOAD_URL to $DOWNLOAD_PATH"
|
||||
mkdir -p "$DIR_MANAGED"
|
||||
wget -O "$DOWNLOAD_PATH" "$DOWNLOAD_URL" || {
|
||||
echo "Failed to download the module package."
|
||||
exit 1
|
||||
}
|
||||
if [ ! -s "$DOWNLOAD_PATH" ]; then
|
||||
echo "The module package does not exist or is empty."
|
||||
exit 1
|
||||
fi
|
||||
echo "Download Successful: $DOWNLOAD_PATH"
|
||||
shell: bash
|
||||
env:
|
||||
MODULE_DOMAIN: ${{ secrets.MODULE_DOMAIN }}
|
||||
|
||||
build-launcher:
|
||||
needs: check-tag-exists
|
||||
if: needs.check-tag-exists.outputs.proceed == 'true'
|
||||
|
@ -67,7 +67,7 @@ docker run --detach --volume=//./pipe/docker_engine://./pipe/docker_engine --env
|
||||
|
||||
## Module Requirements
|
||||
|
||||
To build the Modules project, a link to a private repository is required for the build process. The link is stored as a secret in the Drone CI/CD environment. The secret is named `MODULE_DOMAIN` and is used to download files from the private repository.
|
||||
To build the Modules project, a link to a private repository is required for the build process. The link is stored as a secret in the Drone CI/CD environment. The secret is named `MODULE_DOMAIN` and is used to download files from the private repository. It does not end with a slash.
|
||||
|
||||
## Building the Docker Images
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user