From 883917c79e653eb639bc31e84ec5fd57d728f39c Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Thu, 13 Feb 2025 22:08:55 +0700 Subject: [PATCH] copy content to local server --- .gitea/workflows/maven.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/maven.yml b/.gitea/workflows/maven.yml index 7982a34..6890078 100644 --- a/.gitea/workflows/maven.yml +++ b/.gitea/workflows/maven.yml @@ -22,15 +22,14 @@ jobs: cache: 'maven' - name: Build, Test and Package with Maven run: mvn -B verify --file pom.xml -e - - name: List Target Directory Contents - run: ls -l target/ - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: app-artifacts + name: app-artifact path: | target/*.jar Dockerfile + docker-compose.yml - name: Create Maven settings.xml run: | cat < ~/.m2/settings.xml @@ -55,10 +54,8 @@ jobs: - name: Download artifact uses: actions/download-artifact@v3 with: - name: app-artifacts + name: app-artifact path: artifact - - name: List Artifact Contents - run: ls -l artifact/ - name: Install SSH Key uses: shimataro/ssh-key-action@v2 with: @@ -68,6 +65,6 @@ jobs: run: | 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 docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} + scp artifact/docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}