Skip to content

Commit b190deb

Browse files
committed
Hotfix: update deployment pipeline
1 parent ca3355d commit b190deb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/deployment.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
23
name: deployment
34

45
on:
@@ -28,19 +29,16 @@ jobs:
2829
set -ex
2930
source ~/.profile
3031
export BRANCH="${{ github.event.inputs.branch }}"
31-
export BASE_DIR="/home/ubuntu/cg_langbuilder/"
32-
export REPO_DIR="$BASE_DIR/LangBuilder"
32+
export REPO_DIR="/home/ubuntu/cg_langbuilder/LangBuilder"
3333
export OPENWEBUI_DIR="$REPO_DIR/openwebui"
3434
export OPENWEBUI_BACKEND_DIR="$OPENWEBUI_DIR/backend"
3535
export LANGBUILDER_DIR="$REPO_DIR/langbuilder"
3636
37-
cd "$BASE_DIR"
38-
rm -rf LangBuilder/
39-
git clone https://github.com/CloudGeometry/LangBuilder.git
4037
cd "$REPO_DIR"
38+
git stash
4139
git fetch origin
4240
git checkout "$BRANCH"
43-
git pull origin "$BRANCH"
41+
git reset --hard "origin/$BRANCH"
4442
4543
set +e
4644
if [ -f /tmp/openwebui_backend.pid ]; then
@@ -78,4 +76,3 @@ jobs:
7876
echo "Deploy completo en branch $BRANCH"
7977
tail -n 20 /tmp/openwebui_backend.log || true
8078
tail -n 20 /tmp/langbuilder.log || true
81-

0 commit comments

Comments
 (0)