Skip to content

Commit 994b10a

Browse files
authored
Update docker-image.yml
1 parent 7457949 commit 994b10a

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/docker-image.yml

+17-13
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,34 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ ]
5+
branches:
6+
- main
7+
- master
88

99
jobs:
1010
docker:
1111
runs-on: ubuntu-latest
1212
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+
1323
- name: Build with Maven
1424
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
2327
uses: docker/login-action@v3
2428
with:
2529
username: ${{ secrets.DOCKER_USERNAME }}
2630
password: ${{ secrets.DOCKER_PASSWORD }}
27-
-
28-
name: Build and push
31+
32+
- name: Build and push
2933
uses: docker/build-push-action@v6
3034
with:
3135
push: true

0 commit comments

Comments
 (0)