add download_filemanager

This commit is contained in:
Fernando Ontiveros
2025-07-08 13:16:37 -04:00
parent 6ff4888f02
commit 90d9515075
4 changed files with 31 additions and 4 deletions

View File

@@ -8,9 +8,10 @@ stages:
build_job: build_job:
stage: build stage: build
script: script:
# Download fileManager
- bash docker/download_filemanager.sh "1.0.7"
- bash docker/build.sh $VERSION - bash docker/build.sh $VERSION
before_script: before_script:
- VERSION=$(git describe | awk -F- '{ if( $2) {print $1 "." $2} else {print $1 ".0"} }' ) - VERSION=$(git describe | awk -F- '{ if( $2) {print $1 "." $2} else {print $1 ".0"} }' )
- echo $VERSION - echo $VERSION

View File

@@ -15,7 +15,6 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 14 nvm install 14
# Update and install Composer dependencies # Update and install Composer dependencies
composer update composer update
composer install composer install

View File

@@ -0,0 +1,28 @@
#!/bin/bash
# Define the base URL and the token
TOKEN="glpat-7dM-zghnyabwY6cJyuhw"
PROJECT_ID="47"
PACKAGE_NAME="filemanager"
OUTPUT_FILE="$PACKAGE_NAME.tar.gz"
VERSION=$1
# Construct the URL
URL="https://gitlab.luranasoft.com/api/v4/projects/$PROJECT_ID/packages/generic/filemanager/$VERSION/$PACKAGE_NAME-$VERSION.tar.gz"
# Download the file using curl
echo "Download $OUTPUT_FILE from $URL"
curl --header "PRIVATE-TOKEN: $TOKEN" "$URL" --output "$OUTPUT_FILE"
ls -lhs $OUTPUT_FILE
# Check if the download was successful
if [ $? -eq 0 ]; then
echo "Download completed successfully."
mkdir -p workflow/public_html/fileManager
tar -xzf filemanager.tar.gz -C workflow/public_html/fileManager
ls -lhs workflow/public_html/fileManager
else
echo "Failed to download $OUTPUT_FILE. Please check the version number and try again."
fi

Submodule fileManager deleted from dfef74d13c