File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/
You can’t perform that action at this time.
0 commit comments