deploy and build app
Some checks failed
Gitea Action Maven build / build (push) Successful in 48s
Gitea Action Maven build / deploy (push) Failing after 6s

This commit is contained in:
Eduard Kuksa 2025-02-13 22:13:26 +07:00
parent 883917c79e
commit add580ac33

View File

@ -66,5 +66,13 @@ jobs:
scp artifact/target/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
scp artifact/Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
scp artifact/docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
- name: Build and Run Docker Image with Docker Compose
run: |
ssh ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} << EOF
"cd ${{ vars.DEPLOY_PATH }}
docker compose down
docker compose up -d --build
EOF
# docker compose build && docker compose up -d"