Commit 994b10a 1 parent 7457949 commit 994b10a Copy full SHA for 994b10a
File tree 1 file changed +17
-13
lines changed
1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,34 @@ name: Docker Image CI
2
2
3
3
on :
4
4
push :
5
- branches : [ "main" ]
6
- pull_request :
7
- branches : [ ]
5
+ branches :
6
+ - main
7
+ - master
8
8
9
9
jobs :
10
10
docker :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
+
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Set up JDK 17
18
+ uses : actions/setup-java@v4
19
+ with :
20
+ distribution : ' temurin'
21
+ java-version : ' 17'
22
+
13
23
- name : Build with Maven
14
24
run : mvn clean install
15
- -
16
- name : Set up QEMU
17
- uses : docker/setup-qemu-action@v3
18
- -
19
- name : Set up Docker Buildx
20
- uses : docker/setup-buildx-action@v3
21
- -
22
- name : Login to Docker Hub
25
+
26
+ - name : Login to Docker Hub
23
27
uses : docker/login-action@v3
24
28
with :
25
29
username : ${{ secrets.DOCKER_USERNAME }}
26
30
password : ${{ secrets.DOCKER_PASSWORD }}
27
- -
28
- name : Build and push
31
+
32
+ - name : Build and push
29
33
uses : docker/build-push-action@v6
30
34
with :
31
35
push : true
You can’t perform that action at this time.
0 commit comments