Skip to content

Commit 4c6529a

Browse files
authored
Github action to publish image is missing compilation or project (#341)
* Github action to publish image is missing compilation or project
1 parent 4fad766 commit 4c6529a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- uses: AdoptOpenJDK/install-jdk@v1
18+
with:
19+
version: '16'
20+
architecture: x64
21+
22+
- name: Build with Maven
23+
run: ./mvnw clean package
24+
1425
- name: Docker meta
1526
id: meta
1627
uses: crazy-max/ghaction-docker-meta@v2
@@ -23,7 +34,7 @@ jobs:
2334
type=ref,event=tag
2435
2536
- name: Login to DockerHub
26-
uses: docker/login-action@v1
37+
uses: docker/login-action@v1
2738
with:
2839
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2940
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
@@ -34,4 +45,4 @@ jobs:
3445
push: true
3546
tags: ${{ steps.meta.outputs.tags }}
3647
labels: ${{ steps.meta.outputs.labels }}
37-
48+

0 commit comments

Comments
 (0)