Files
dap-was-dapmt/deploy.sh
윤희준 1ec328e490
All checks were successful
Deploy Tools / deploy (push) Successful in 3m27s
fix: use git reset before pull in deploy.sh
2026-08-18 16:26:37 +09:00

22 lines
603 B
Bash

#!/bin/bash
APP_DIR="/home/ubuntu/apps/dap-mcp"
# 1. Update and Build Gateway (dapms)
cd $APP_DIR/dap-was-dapms
git reset --hard HEAD && git pull
docker run --rm -v $(pwd):/app -w /app eclipse-temurin:21-jdk-alpine sh -c "chmod +x gradlew && ./gradlew clean build -x test"
# 2. Update and Build Tools (dapmt)
cd $APP_DIR/dap-was-dapmt
git reset --hard HEAD && git pull
docker run --rm -v $(pwd):/app -w /app eclipse-temurin:21-jdk-alpine sh -c "chmod +x gradlew && ./gradlew clean build -x test"
# 3. Deploy
cd $APP_DIR
docker compose build
docker compose up -d
# 4. Cleanup
docker system prune -f