fix CI/CD tags version in admin page
This commit is contained in:
@@ -10,9 +10,9 @@ fi
|
|||||||
echo "Building Lurana Open Source version $1"
|
echo "Building Lurana Open Source version $1"
|
||||||
|
|
||||||
# Install Node.js 14
|
# Install Node.js 14
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
||||||
export NVM_DIR="$HOME/.nvm"
|
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
|
||||||
|
|
||||||
|
|
||||||
@@ -23,11 +23,14 @@ composer install
|
|||||||
echo "Building Laravel+Vue "
|
echo "Building Laravel+Vue "
|
||||||
|
|
||||||
nvm use 14
|
nvm use 14
|
||||||
node -v
|
node -v
|
||||||
npm install
|
npm install
|
||||||
npm run dev
|
npm run dev
|
||||||
ls -lhs workflow/public_html/webapp
|
ls -lhs workflow/public_html/webapp
|
||||||
|
|
||||||
|
# write the version in php file
|
||||||
|
echo -e "<?php \n define('PM_VERSION', '$1');\n" > ./workflow/engine/methods/login/version-pmos.php
|
||||||
|
|
||||||
# Construct the Docker image tag name
|
# Construct the Docker image tag name
|
||||||
tagname="gitlab.luranasoft.com:5050/luos/core/luos:$1"
|
tagname="gitlab.luranasoft.com:5050/luos/core/luos:$1"
|
||||||
echo "Docker tag name: $tagname"
|
echo "Docker tag name: $tagname"
|
||||||
|
|||||||
Reference in New Issue
Block a user