From 46dd3935a83052142bdd8fbf7d86723488750eb2 Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sat, 22 Feb 2025 18:13:02 +0700 Subject: [PATCH] fix: create remote dir on server --- .gitea/workflows/maven.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/maven.yaml b/.gitea/workflows/maven.yaml index eabb6f7..c405c9f 100644 --- a/.gitea/workflows/maven.yaml +++ b/.gitea/workflows/maven.yaml @@ -59,6 +59,8 @@ jobs: with: key: ${{ secrets.SSH_PRIVATE_KEY }} 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 run: scp -r artifact/* ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} - name: Build and Run Docker Image with Docker Compose