Use official docker login action (#25)

This commit is contained in:
Michael Barry
2022-08-03 05:35:17 -04:00
committed by GitHub
parent 25e418d8f7
commit 1982a69cf6

View File

@@ -17,8 +17,11 @@ jobs:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: 'Login to dockerhub'
run: docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" -p "${{ secrets.DOCKERHUB_PASSWORD }}"
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: 'Build and push to dockerhub'
run: ./mvnw -B -ntp -Pjib-multi-arch -Dimage.tags="latest" package jib:build --file pom.xml
- run: sha256sum target/*with-deps.jar