From 3170d7ad8ee52a5a617586058369ef5a57a44a1e Mon Sep 17 00:00:00 2001 From: ADHL Date: Thu, 27 Mar 2025 11:56:35 +0000 Subject: [PATCH] build image workflow Signed-off-by: ADHL --- .github/workflows/maven-build-image.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/maven-build-image.yml diff --git a/.github/workflows/maven-build-image.yml b/.github/workflows/maven-build-image.yml new file mode 100644 index 000000000..a58e36b09 --- /dev/null +++ b/.github/workflows/maven-build-image.yml @@ -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 \ No newline at end of file