chore: fix runs-on syntax and add gradle caching
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 0s
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 0s
This commit is contained in:
@@ -9,16 +9,21 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest:host
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy Task on Host
|
- name: Deploy Task on Host
|
||||||
run: |
|
run: |
|
||||||
echo "Starting Host Native CI/CD Deploy pipeline..."
|
echo "Starting Standard CI/CD Deploy pipeline..."
|
||||||
|
docker run --rm \
|
||||||
|
-v /home/ubuntu/app/ax_hub_mcp_tool:/app \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
-v /home/ubuntu/.gradle:/root/.gradle \
|
||||||
|
-w /app \
|
||||||
|
eclipse-temurin:21-jdk-jammy \
|
||||||
|
/bin/bash -c "git pull && chmod +x gradlew && ./gradlew bootJar -x test"
|
||||||
|
|
||||||
cd /home/ubuntu/app/ax_hub_mcp_tool
|
cd /home/ubuntu/app/ax_hub_mcp_tool
|
||||||
git pull
|
|
||||||
chmod +x gradlew
|
|
||||||
./gradlew bootJar -x test
|
|
||||||
find . -name "*-plain.jar" -delete
|
find . -name "*-plain.jar" -delete
|
||||||
docker compose down
|
docker compose down
|
||||||
docker compose up -d --build gateway redis mci-mock dozzle tool-sms tool-email tool-other tool-payment gitea-runner
|
docker compose up -d --build gateway redis mci-mock dozzle tool-sms tool-email tool-other tool-payment gitea-runner
|
||||||
echo "Host Native CI/CD Success!"
|
echo "CI/CD Deploy Success!"
|
||||||
|
|||||||
Reference in New Issue
Block a user