Skip to content

Commit 9bc9380

Browse files
committed
ci: add build docker image
1 parent 6a820f2 commit 9bc9380

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/maven.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,23 @@ jobs:
2424
- name: Build with Maven
2525
run: mvn -B -V -DskipTests=false verify
2626

27-
- name: Upload test results
28-
if: always()
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: test-results
32-
path: target/surefire-reports || target/failsafe-reports || target
27+
#- name: Upload test results
28+
# if: always()
29+
# uses: actions/upload-artifact@v4
30+
# with:
31+
# name: test-results
32+
# path: |
33+
# target/surefire-reports/**/*.xml
34+
# target/failsafe-reports/**/*.xml
35+
# target/**
36+
# if-no-files-found: warn
37+
38+
- name: Copy JAR to docker context
39+
run: |
40+
mkdir -p dockerfile
41+
echo "Jar files in target:"
42+
ls -la target/*.jar || true
43+
cp target/*.jar dockerfile/ || true
44+
45+
- name: Build Docker image
46+
run: docker build -f dockerfile/Dockerfile -t my-app-image:${{ github.sha }} dockerfile/

0 commit comments

Comments
 (0)