fix: create remote dir on server
Some checks failed
Gitea Action Maven build / build (push) Successful in 41s
Gitea Action Maven build / deploy (push) Failing after 6s

This commit is contained in:
Eduard Kuksa 2025-02-22 18:13:02 +07:00
parent f5f9e8c644
commit 46dd3935a8

View File

@ -59,6 +59,8 @@ jobs:
with: with:
key: ${{ secrets.SSH_PRIVATE_KEY }} key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }} known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Create Remote Directory
run: ssh ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} mkdir -p ${{ vars.DEPLOY_PATH }}
- name: Deploy to Local Server - name: Deploy to Local Server
run: scp -r artifact/* ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} run: scp -r artifact/* ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
- name: Build and Run Docker Image with Docker Compose - name: Build and Run Docker Image with Docker Compose