fix: Remover git clone e usar path /opt/gbo/work/botserver/src
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
This commit is contained in:
parent
1f19d47cec
commit
b39dc3e268
1 changed files with 2 additions and 5 deletions
|
|
@ -25,26 +25,23 @@ jobs:
|
||||||
|
|
||||||
# Setup project workspace
|
# Setup project workspace
|
||||||
mkdir -p ~/workspace/botserver
|
mkdir -p ~/workspace/botserver
|
||||||
cd ~/workspace/botserver
|
cd /opt/gbo/work/botserver/src
|
||||||
|
|
||||||
# Clone or update repos
|
# Clone or update repos
|
||||||
if [ ! -d botlib ]; then
|
if [ ! -d botlib ]; then
|
||||||
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/botlib.git
|
|
||||||
else
|
else
|
||||||
cd botlib && git pull && cd ..
|
cd botlib && git pull && cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d botserver/.git ]; then
|
if [ ! -d botserver/.git ]; then
|
||||||
rm -rf botserver
|
rm -rf botserver
|
||||||
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver
|
|
||||||
else
|
else
|
||||||
cd botserver && git pull && cd ..
|
cd botserver && git pull && cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d ~/workspace/gb-ws ]; then
|
if [ ! -d ~/workspace/gb-ws ]; then
|
||||||
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git ~/workspace/gb-ws
|
|
||||||
else
|
else
|
||||||
cd ~/workspace/gb-ws && git pull && cd ~/workspace/botserver
|
cd /opt/gbo/work/botserver/src && git pull && cd /opt/gbo/work/botserver/src
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup Cargo.toml
|
# Setup Cargo.toml
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue