Skip to content

Spring boot image build

Actions

About

This action will build your spring application via bootBuildImage and publish it ! hooray
0.0.3
Latest
Star (0)

Tags

 (1)

Spring Boot Image Build Action

Spring Boot Image Build Action

This action builds your Spring application using 'bootBuildImage' and publishes it.

Inputs

  • jdk_dist (required): JDK distribution. Default is '22-graal'.
  • registry_username: Registry username.
  • registry_password: Registry password.
  • registry_hostname: Registry hostname. Default is 'docker.io'.
  • include_commit_sha: Include commit SHA to image tag. Default is 'false'.

Outputs

  • tag: Image name.
  • image_tag: Image tag.

Example Usage

name: Build and Publish Spring Boot Image

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Build Spring Boot Image
        id: build
        uses: teheidoma/spring-boot-image-build-action@0.0.3
        with:
          jdk_dist: '17.0.10-graal'
          registry_username: ${{ secrets.REGISTRY_USERNAME }}
          registry_password: ${{ secrets.REGISTRY_PASSWORD }}
          registry_hostname: 'docker.io'
          include_commit_sha: 'true'
      - name: Upload Image to Registry
        run: echo "Upload image ${{ steps.build.outputs.tag }}:${{ steps.build.outputs.image_tag }} to registry."

Spring boot image build is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action will build your spring application via bootBuildImage and publish it ! hooray
0.0.3
Latest

Tags

 (1)

Spring boot image build is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.