Skip to content

Commit

Permalink
Update catalog-service-ci-cd.yml
Browse files Browse the repository at this point in the history
Mise à jour de la partie deploy de pipeline
  • Loading branch information
Zeineb2001 authored Nov 18, 2024
1 parent fa07f22 commit 8ae98d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/catalog-service-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 8ae98d0

Please sign in to comment.