Skip to content

Commit

Permalink
Github action to publish image is missing compilation or project (#341)
Browse files Browse the repository at this point in the history
* Github action to publish image is missing compilation or project
  • Loading branch information
worldtiki authored May 20, 2021
1 parent 4fad766 commit 4c6529a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: AdoptOpenJDK/install-jdk@v1
with:
version: '16'
architecture: x64

- name: Build with Maven
run: ./mvnw clean package

- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
Expand All @@ -23,7 +34,7 @@ jobs:
type=ref,event=tag
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
Expand All @@ -34,4 +45,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 4c6529a

Please sign in to comment.