mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
Update github workflow actions
This commit is contained in:
parent
8f08b38f2c
commit
71a43e4673
3 changed files with 18 additions and 0 deletions
5
.github/workflows/build-image.yml
vendored
Normal file
5
.github/workflows/build-image.yml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- name: Build builder image
|
||||
run: docker build -f Dockerfile.build -t petclinic-builder .
|
||||
|
||||
# - name: Build runtime image
|
||||
# run: docker build -f Dockerfile.run -t ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REPO_PATH }}:${{ github.sha }} .
|
||||
7
.github/workflows/maven-build.yml
vendored
7
.github/workflows/maven-build.yml
vendored
|
|
@ -27,3 +27,10 @@ jobs:
|
|||
cache: maven
|
||||
- name: Build with Maven Wrapper
|
||||
run: ./mvnw -B verify
|
||||
|
||||
|
||||
- name: Build builder image
|
||||
run: docker build -f Dockerfile.build -t petclinic-builder .
|
||||
|
||||
- name: Build runtime image
|
||||
run: docker build -f Dockerfile.run -t ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REPO_PATH }}:${{ github.sha }} .
|
||||
|
|
|
|||
6
.github/workflows/push-image.yml
vendored
Normal file
6
.github/workflows/push-image.yml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- name: Push final image
|
||||
run: |
|
||||
docker push ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REPO_PATH }}:${{ github.sha }}
|
||||
docker tag ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REPO_PATH }}:${{ github.sha }} \
|
||||
${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REPO_PATH }}:latest
|
||||
docker push ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REPO_PATH }}:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue