mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
file is updated
This commit is contained in:
parent
f404b30d44
commit
d8144c4250
1 changed files with 5 additions and 5 deletions
8
.github/workflows/maven-build.yml
vendored
8
.github/workflows/maven-build.yml
vendored
|
@ -83,8 +83,8 @@ name: CI/CD Pipelineson:
|
||||||
uses: actions/checkout@v3 - name: Verify JAR file
|
uses: actions/checkout@v3 - name: Verify JAR file
|
||||||
run: |
|
run: |
|
||||||
echo "Verifying JAR file presence..."
|
echo "Verifying JAR file presence..."
|
||||||
ls -al /home/aiman/GITHUB/spring-petclinic/target/
|
ls -al /home/aiman/spring-petclinic/target/
|
||||||
if [ -z "$(find /home/aiman/GITHUB/spring-petclinic/target/ -name 'spring-petclinic-3.3.0-SNAPSHOT.jar')" ]; then
|
if [ -z "$(find /home/aiman/spring-petclinic/target/ -name 'spring-petclinic-3.3.0-SNAPSHOT.jar')" ]; then
|
||||||
echo "JAR file not found in target directory!"
|
echo "JAR file not found in target directory!"
|
||||||
exit 1
|
exit 1
|
||||||
fi - name: Setup SSH
|
fi - name: Setup SSH
|
||||||
|
@ -102,8 +102,8 @@ name: CI/CD Pipelineson:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying application to $DEPLOY_SERVER"
|
echo "Deploying application to $DEPLOY_SERVER"
|
||||||
scp -i ~/.ssh/id_rsa /home/aiman/GITHUB/spring-petclinic/target/spring-petclinic-3.3.0-SNAPSHOT.jar $DEPLOY_USER@$DEPLOY_SERVER:/home/waqas/spring-petclinic/
|
scp -i ~/.ssh/id_rsa /home/aiman/spring-petclinic/target/spring-petclinic-3.3.0-SNAPSHOT.jar $DEPLOY_USER@$DEPLOY_SERVER:/home/aiman/spring-petclinic/
|
||||||
ssh -i ~/.ssh/id_rsa $DEPLOY_USER@$DEPLOY_SERVER "nohup java -jar /home/waqas/spring-petclinic/spring-petclinic-3.3.0-SNAPSHOT.jar > /dev/null 2>&1 &"
|
ssh -i ~/.ssh/id_rsa $DEPLOY_USER@$DEPLOY_SERVER "nohup java -jar /home/aiman/spring-petclinic/spring-petclinic-3.3.0-SNAPSHOT.jar > /dev/null 2>&1 &"
|
||||||
rm -f ~/.ssh/id_rsa - name: Wait for application to start
|
rm -f ~/.ssh/id_rsa - name: Wait for application to start
|
||||||
run: |
|
run: |
|
||||||
echo "Waiting for application to start..."
|
echo "Waiting for application to start..."
|
||||||
|
|
Loading…
Reference in a new issue