We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ef123 commit 96f576fCopy full SHA for 96f576f
.github/workflows/maven.yml
@@ -40,7 +40,7 @@ jobs:
40
- name: Build Docker image with short commit SHA
41
run: |
42
VERSION=$(echo "${{ github.sha }}" | cut -c1-7)
43
- docker build -t $IMAGE_NAME:$VERSION -f target/Dockerfile target
+ docker build -t $IMAGE_NAME:$VERSION .
44
echo "VERSION=$VERSION" >> $GITHUB_ENV
45
46
- name: Push Docker image
Dockerfile
@@ -0,0 +1,3 @@
1
+FROM openjdk:21
2
+COPY target/*.jar app.jar
3
+ENTRYPOINT ["java", "-jar", "/app.jar"]
0 commit comments