From 0158b0c47550a76164acca9b582bdd0eaf41f42d Mon Sep 17 00:00:00 2001 From: Vermaas <vermaas@astron.nl> Date: Tue, 10 Dec 2024 14:07:42 +0100 Subject: [PATCH] trigger build --- deploy_atdb_local_dev.sh | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/deploy_atdb_local_dev.sh b/deploy_atdb_local_dev.sh index 7c0dfe97..2df8b81b 100644 --- a/deploy_atdb_local_dev.sh +++ b/deploy_atdb_local_dev.sh @@ -2,22 +2,9 @@ export ATDB_DIR=$HOME/my_docker/atdb-ldv cd $ATDB_DIR +git pull -# 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-pull-local.yml -p atdb up -d - - echo "ATDB-lDV deployed." -fi \ No newline at end of file +# Proceed with build and redeploy, this only does something when new changes were detected by the git pull +cd atdb +docker build -t atdb-ldv:latest . +docker-compose -f docker/docker-compose-dev-pull-local.yml -p atdb up -d -- GitLab