Hotfix match response currentbetting Terminal Operation firstFind #204
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: excuting remote ssh commands | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.REMOTE_IP }} | |
port: ${{ secrets.REMOTE_SSH_PORT }} | |
username: ${{ secrets.REMOTE_USERNAME }} | |
password: ${{ secrets.REMOTE_PASSWORD }} | |
script: | | |
cd /root/GSM-GOGO-Server | |
git pull origin main | |
./gradlew clean | |
./gradlew build | |
docker stop gogo-api || true | |
docker rm gogo-api || true | |
docker stop gogo-batch || true | |
docker rm gogo-batch || true | |
docker build -t gsmgogo/gsmgogo-api . -f Api.Dockerfile | |
docker build -t gsmgogo/gsmgogo-batch . -f Batch.Dockerfile | |
docker run -d -it --env-file ./.env -p 80:8080 --name gogo-api gsmgogo/gsmgogo-api | |
docker run -d -it --env-file ./.env -p 8081:8081 --name gogo-batch gsmgogo/gsmgogo-batch |