mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:45:48 +00:00
updated workflow
This commit is contained in:
parent
06c3daa608
commit
268350cb99
1 changed files with 6 additions and 2 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -22,7 +22,9 @@ jobs:
|
||||||
run: ./mvnw package -B
|
run: ./mvnw package -B
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: docker build -t petclinic:${{ github.sha }} .
|
run: |
|
||||||
|
docker build -t petclinic:${{ github.sha }} .
|
||||||
|
docker tag ybandala/petclinic:${{ github.sha }} ybandala/petclinic:latest
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ./mvnw test
|
run: ./mvnw test
|
||||||
|
@ -31,4 +33,6 @@ jobs:
|
||||||
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
- name: Push Image to Docker Hub
|
- name: Push Image to Docker Hub
|
||||||
run: docker push ybandala/petclinic:${{ github.sha }}
|
run: |
|
||||||
|
docker push ybandala/petclinic:${{ github.sha }}
|
||||||
|
docker push ybandala/petclinic:latest
|
||||||
|
|
Loading…
Reference in a new issue