Skip to content

Commit

Permalink
do we really need ARG ???
Browse files Browse the repository at this point in the history
  • Loading branch information
thadguidry committed Nov 10, 2024
1 parent 872747c commit e64fd34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dockerhub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ jobs:
# instead of PATH context `context: .`
push: true
tags: kdhrubo/db2rest:v${{ github.run_number }}, kdhrubo/db2rest:latest
build-args: JAR_FILE=db2rest.jar
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM bellsoft/liberica-runtime-container:jre-21-cds-slim-musl

ARG JAR_FILE

# cp target/db2rest.jar /opt/app/db2rest.jar
# ARG JAR_FILE is passed in from the Buildx `build-args` input during GitHub dockerhub-publish.yml action
COPY $JAR_FILE /opt/app/db2rest.jar
COPY db2rest.jar /opt/app/db2rest.jar

# cd /opt/app
WORKDIR /opt/app
Expand Down

0 comments on commit e64fd34

Please sign in to comment.