mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
Update maven-build.yml
This commit is contained in:
parent
20b863a2d3
commit
0531f28280
1 changed files with 20 additions and 20 deletions
38
.github/workflows/maven-build.yml
vendored
38
.github/workflows/maven-build.yml
vendored
|
@ -69,27 +69,27 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./mvnw test
|
run: ./mvnw test
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
needs: test
|
needs: test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Verify JAR file
|
- name: Verify JAR file
|
||||||
run: |
|
run: |
|
||||||
echo "Verifying JAR file presence..."
|
echo "Verifying JAR file presence..."
|
||||||
# List the files in the target directory
|
# List the files in the target directory
|
||||||
ls -al /home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/
|
ls -al /home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/
|
||||||
|
|
||||||
# Check if the JAR file exists and display a message if not
|
# Check if the JAR file exists and display a message if not
|
||||||
JAR_PATH="/home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/spring-petclinic-3.3.0-SNAPSHOT.jar"
|
JAR_PATH="/home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/spring-petclinic-3.3.0-SNAPSHOT.jar"
|
||||||
if [ ! -f "$JAR_PATH" ]; then
|
if [ ! -f "$JAR_PATH" ]; then
|
||||||
echo "JAR file not found at $JAR_PATH"
|
echo "JAR file not found at $JAR_PATH"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "JAR file found at $JAR_PATH"
|
echo "JAR file found at $JAR_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue