update pipeline
This commit is contained in:
parent
5d77b2eb05
commit
3c6121911a
@ -11,7 +11,7 @@ pipeline {
|
|||||||
ssh -o StrictHostKeyChecking=no kreamond@109.73.204.66 '
|
ssh -o StrictHostKeyChecking=no kreamond@109.73.204.66 '
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd ~/docbot || exit 1
|
cd ~/docbot || exit 1
|
||||||
git diff --name-only origin/main main | grep -i 'src/alembic/version' > db_script.txt || true
|
git diff --name-only origin/main main | grep -i 'alembic/versions' > db_script.txt || true
|
||||||
git pull origin main
|
git pull origin main
|
||||||
if [ -s db_script.txt ]; then
|
if [ -s db_script.txt ]; then
|
||||||
echo "Database migration scripts detected. Running migrations..."
|
echo "Database migration scripts detected. Running migrations..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user