File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11
2+
23name : deployment
34
45on :
@@ -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
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-
You can’t perform that action at this time.
0 commit comments