From 59a4ac804a00cbe6e9f58d9277d2fbb1398d8a5c Mon Sep 17 00:00:00 2001 From: divyansh42 Date: Thu, 28 Jan 2021 20:06:26 +0530 Subject: [PATCH] Fix jar file name issue Signed-off-by: divyansh42 --- .github/workflows/verify-build.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/verify-build.yml b/.github/workflows/verify-build.yml index 23a6663..9885cc6 100644 --- a/.github/workflows/verify-build.yml +++ b/.github/workflows/verify-build.yml @@ -61,16 +61,6 @@ jobs: with: path: ${{ env.MVN_REPO_DIR }} key: ${{ env.MVN_HASH }} - - # Store the output jar into the env for reuse below. - # It will contain, eg. "spring-petclinic-2.3.0.BUILD-SNAPSHOT.jar" - - name: Get jar filename - id: get-jarname - run: | - export JAR_NAME="$(basename $(ls ${{ env.PROJECT_DIR }}/target/*.jar))" - echo "Petclinic jar is $JAR_NAME" - echo "::set-output name=jarname::$JAR_NAME" - echo "JAR_NAME=$JAR_NAME" >> $GITHUB_ENV # Build image using Buildah action - name: Build Image @@ -82,11 +72,11 @@ jobs: base-image: 'registry.access.redhat.com/openjdk/openjdk-11-rhel7' # To avoid hardcoding a particular version of the binary. content: | - ./spring-petclinic/target/spring-petclinic-*.BUILD-SNAPSHOT.jar + ./spring-petclinic/target/spring-petclinic-*.jar entrypoint: | java -jar - spring-petclinic-*.BUILD-SNAPSHOT.jar + spring-petclinic-*.jar port: 8080 - name: Echo Outputs