Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
waelABDALLAH1 committed Dec 27, 2024
1 parent 2eb4f2a commit 6714dbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mailing-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: service-mailing.jar
path: mailing/mailing/target/*.jar
path: mailing/mailing/target/mailing-1.0.0-SNAPSHOT.jar

deploy:
runs-on: ubuntu-latest
Expand All @@ -48,9 +48,9 @@ jobs:
name: service-mailing.jar
path: ./

- name: Verify if the correct JAR file exists
- name: Verify Downloaded Files
run: |
ls *.jar || (echo "JAR file not found!" && exit 1)
ls -l
- name: Add Server to Known Hosts
run: |
Expand All @@ -66,7 +66,7 @@ jobs:
run: |
sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" ssh ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }} \
"mkdir -p ~/mailing-service"
- name: Transfer JAR to VPS
run: |
sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" scp service-mailing.jar \
Expand Down

0 comments on commit 6714dbb

Please sign in to comment.