File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Maven and Docker Build
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ jobs :
7
+ build :
8
+ name : Maven and Docker Build
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v3
13
+
14
+ - name : Set up Java
15
+ uses : actions/setup-java@v3
16
+ with :
17
+ java-version : " 17"
18
+ distribution : " liberica"
19
+ cache : " maven"
20
+
21
+ - name : Verify with Maven
22
+ run : mvn verify -B -P prod "-Dstyle.color=always"
23
+
24
+ - name : Build and push
25
+ uses : docker/build-push-action@v5
26
+ with :
27
+ context : .
28
+ push : false
Original file line number Diff line number Diff line change 20
20
url : https://hub.docker.com/layers/${{ inputs.image_name }}/${{ steps.bump.outputs.tag }}/images/${{ steps.docker_build_push.outputs.digest }}
21
21
22
22
steps :
23
- - uses : actions/checkout@v3
23
+ - name : Checkout
24
+ uses : actions/checkout@v3
24
25
with :
25
26
token : ${{ secrets.BUMP_PAT }}
26
27
You can’t perform that action at this time.
0 commit comments