Skip to content

Commit

Permalink
Use shadowJar gradle task in docker action script, correct name for j…
Browse files Browse the repository at this point in the history
…ar in Dockerfile
  • Loading branch information
pflooky committed Nov 28, 2023
1 parent 7dee4da commit 9b00aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY --chown=app:app app/src/main/resources/log4j2.properties /opt/app/log4j2.pr
COPY --chown=app:app app/src/main/resources/report /opt/app/report

ARG APP_VERSION=0.1
COPY --chown=app:app app/build/libs/datacaterer-basic-${APP_VERSION}.jar /opt/app/job.jar
COPY --chown=app:app app/build/libs/app-${APP_VERSION}-all.jar /opt/app/job.jar
COPY --chown=app:app api/build/libs/datacaterer-api-${APP_VERSION}.jar /opt/spark/jars/datacaterer-api-${APP_VERSION}.jar
RUN chmod 755 -R /opt/app

Expand Down
2 changes: 1 addition & 1 deletion docker-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [[ "$publish_res" -ne 0 ]] ; then
fi

echo "Creating data caterer jar, version=$version"
./gradlew -PapplicationType=basic build basicJar -x shadowJar
./gradlew build shadowJar
build_app=$?
if [[ "$build_app" -ne 0 ]] ; then
echo "Failed to build app, exiting"
Expand Down

0 comments on commit 9b00aaf

Please sign in to comment.