From 8ae98d01aa86c1d928cb75bb6e76e0a5291cfc97 Mon Sep 17 00:00:00 2001 From: ZeinebMESSAOUDI <130365664+Zeineb2001@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:43:31 +0100 Subject: [PATCH] Update catalog-service-ci-cd.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mise à jour de la partie deploy de pipeline --- .github/workflows/catalog-service-ci-cd.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/catalog-service-ci-cd.yml b/.github/workflows/catalog-service-ci-cd.yml index c71a52e6..95fd42eb 100644 --- a/.github/workflows/catalog-service-ci-cd.yml +++ b/.github/workflows/catalog-service-ci-cd.yml @@ -27,9 +27,6 @@ jobs: cd catalog/catalog-service/ mvn clean package -Dquarkus.package.type=uber-jar - - name: List files in target directory # Vérifiez les fichiers générés - run: ls -l catalog/catalog-service/target/ - - name: Archive JAR Artifact uses: actions/upload-artifact@v3 with: @@ -57,10 +54,10 @@ jobs: - name: Transfer JAR to VPS run: | - sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" scp catalog/catalog-service/target/service-catalog-*-runner.jar ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }}:~/service-catalog/service-catalog.jar + sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" scp ./service-catalog.jar ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }}:~/service-catalog/service-catalog.jar - name: Deploy JAR to VPS - uses: appleboy/ssh-action@v0.1.2 + uses: appleboy/ssh-action@v0.1.2 # Mise à jour de la version with: host: ${{ secrets.DEPLOYMENT_MACHINE_IP }} username: ${{ secrets.DEPLOYMENT_MACHINE_USER }}