fix: use git reset before pull in deploy.sh
All checks were successful
Deploy Tools / deploy (push) Successful in 3m27s

This commit is contained in:
윤희준
2026-08-18 16:26:37 +09:00
parent b1680cfde3
commit 1ec328e490

View File

@@ -4,12 +4,12 @@ APP_DIR="/home/ubuntu/apps/dap-mcp"
# 1. Update and Build Gateway (dapms) # 1. Update and Build Gateway (dapms)
cd $APP_DIR/dap-was-dapms cd $APP_DIR/dap-was-dapms
git pull 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" 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) # 2. Update and Build Tools (dapmt)
cd $APP_DIR/dap-was-dapmt cd $APP_DIR/dap-was-dapmt
git pull 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" 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 # 3. Deploy