-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.ps1
More file actions
24 lines (21 loc) · 725 Bytes
/
deploy.ps1
File metadata and controls
24 lines (21 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# deployer - safer version with build caching
git add -A
git commit
git push
ssh atdevs "\
echo '🚀 Deploying ATDev Services...' && cd ATDev-Services && echo '🛑 Stopping old containers...' && \
docker-compose down && \
echo '📥 Pulling latest changes...' && \
git stash && git pull && \
echo '▶️ Starting new server instance with build caching...' && \
docker-compose up -d --build"
exit
echo '🚀 Deploying ATDev Services...' && \
cd ATDev-Services && \
echo '🛑 Stopping old containers...' && \
docker-compose down && \
echo '📥 Pulling latest changes...' && \
git stash && \
git pull && \
echo '▶️ Starting new server instance with build caching...' && \
docker-compose up -d --build