Skip to content

Merge pull request #9 from gbaso/dependabot/maven/org.springframework… #7

Merge pull request #9 from gbaso/dependabot/maven/org.springframework…

Merge pull request #9 from gbaso/dependabot/maven/org.springframework… #7

Workflow file for this run

name: Build docker image
on:
push:
branches: [ 'main' ]
tags: [ 'v*' ]
jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build and Publish Image
run: ./mvnw -B install spring-boot:build-image -Pnative -Dspring-boot.build-image.publish=true -Ddocker.publishRegistry.username=${{ github.actor }} -Ddocker.publishRegistry.password=${{ secrets.GITHUB_TOKEN }}