spring-petclinic/.github/workflows/maven-build-image.yml
ADHL 3170d7ad8e build image workflow
Signed-off-by: ADHL <hanlim2002@gmail.com>
2025-03-27 12:33:18 +00:00

26 lines
No EOL
543 B
YAML

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