mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 17:11:23 +00:00
Fix jar file name issue
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
8fc3073634
commit
59a4ac804a
1 changed files with 2 additions and 12 deletions
14
.github/workflows/verify-build.yml
vendored
14
.github/workflows/verify-build.yml
vendored
|
@ -62,16 +62,6 @@ jobs:
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
path: ${{ env.MVN_REPO_DIR }}
|
||||||
key: ${{ env.MVN_HASH }}
|
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
|
# Build image using Buildah action
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image
|
id: build_image
|
||||||
|
@ -82,11 +72,11 @@ jobs:
|
||||||
base-image: 'registry.access.redhat.com/openjdk/openjdk-11-rhel7'
|
base-image: 'registry.access.redhat.com/openjdk/openjdk-11-rhel7'
|
||||||
# To avoid hardcoding a particular version of the binary.
|
# To avoid hardcoding a particular version of the binary.
|
||||||
content: |
|
content: |
|
||||||
./spring-petclinic/target/spring-petclinic-*.BUILD-SNAPSHOT.jar
|
./spring-petclinic/target/spring-petclinic-*.jar
|
||||||
entrypoint: |
|
entrypoint: |
|
||||||
java
|
java
|
||||||
-jar
|
-jar
|
||||||
spring-petclinic-*.BUILD-SNAPSHOT.jar
|
spring-petclinic-*.jar
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|
||||||
- name: Echo Outputs
|
- name: Echo Outputs
|
||||||
|
|
Loading…
Reference in a new issue