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 }}