Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
0767fd83
Commit
0767fd83
authored
6 months ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add deploy_local_dev.sh script
parent
c6e0e191
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy_local_dev.sh
+12
-5
12 additions, 5 deletions
deploy_local_dev.sh
with
12 additions
and
5 deletions
deploy_local_dev.sh
+
12
−
5
View file @
0767fd83
...
...
@@ -2,10 +2,17 @@
# be in an existing git cloned atdb-ldv directory (like $HOME/my_docker/atdb-ldv)
git pull
# 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
.
cd
docker
docker-compose
-f
docker/docker-compose-dev-local.yml
-p
atdb up
-d
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment