mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
build image workflow
Signed-off-by: ADHL <hanlim2002@gmail.com>
This commit is contained in:
parent
d7cc02f3d7
commit
3170d7ad8e
1 changed files with 26 additions and 0 deletions
26
.github/workflows/maven-build-image.yml
vendored
Normal file
26
.github/workflows/maven-build-image.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Build Spring Boot Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch: # Allows manual triggering
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Build Image with Maven
|
||||
run: ./mvnw spring-boot:build-image --no-transfer-progress
|
||||
|
||||
- name: List Generated Image
|
||||
run: docker images
|
Loading…
Reference in a new issue