DockerHub Autobuild fails but succeeds in local

Docker build succeeds in my local but auto build on docker hub linked to my Github account fails. Can you please suggest where am I going wrong?

Dockerfile

FROM openjdk:8-jdk-alpine
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

My Build configuration on DockerHub

Here’s Build Error

Step 5/6 : COPY ${JAR_FILE} app.jar
COPY failed: no source files were specified