update pipeline
This commit is contained in:
parent
96293cb066
commit
8567a045d9
@ -12,6 +12,16 @@ pipeline {
|
||||
set -euo pipefail
|
||||
cd ~/docbot || exit 1
|
||||
git diff --name-only origin/main main | grep -i 'alembic/versions' > db_script.txt || true
|
||||
|
||||
if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
|
||||
git checkout main
|
||||
fi
|
||||
|
||||
if git pull origin main | grep -q "Already up to date."; then
|
||||
echo "No updates to deploy."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git pull origin main
|
||||
. .venv/bin/activate
|
||||
if [ -s db_script.txt ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user