mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
Added config for docker push
This commit is contained in:
parent
c9746bb6da
commit
924fbcdcac
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -25,4 +25,10 @@ jobs:
|
|||
run: docker build -t petclinic:${{ github.sha }} .
|
||||
|
||||
- name: Test
|
||||
run: ./mvnw test
|
||||
run: ./mvnw test
|
||||
|
||||
- name: Login to dockerhub
|
||||
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "{{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Push Image to Docker Hub
|
||||
run: docker push ybandala/petclinic:${{ github.sha }}
|
||||
|
|
Loading…
Reference in a new issue