Select Git revision
deploy_local_dev.sh
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
deploy_local_dev.sh 549 B
#!/usr/bin/bash
# be in an existing git cloned atdb-ldv directory (like $HOME/my_docker/atdb-ldv)
# Pull the latest changes and capture the output
OUTPUT=$(git pull)
# Check if there are any changes pulled
if [[ $OUTPUT == *"Already up to date."* ]]; then
echo "No changes detected. Skipping redeploy."
else
echo "Changes detected. Proceeding with redeploy."
# Proceed with build and redeploy
cd atdb
docker build -t atdb-ldv:latest .
docker-compose -f docker/docker-compose-dev-local.yml -p atdb up -d
echo "ATDB-lDV deployed"
fi