chore: change runs-on to host mode
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
This commit is contained in:
@@ -9,20 +9,16 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest:host
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy Task on Host
|
- name: Deploy Task on Host
|
||||||
run: |
|
run: |
|
||||||
echo "Starting CI/CD Deploy pipeline..."
|
echo "Starting Host Native 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 \
|
|
||||||
-w /app \
|
|
||||||
eclipse-temurin:21-jdk-jammy \
|
|
||||||
/bin/bash -c "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 "CI/CD Deploy Success!"
|
echo "Host Native CI/CD Success!"
|
||||||
|
|||||||
Reference in New Issue
Block a user