build(deps): Bump org.springframework.boot:spring-boot-starter-parent from 2.5.11 to 3.2.4 #257
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Download repository | |
uses: actions/[email protected] | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Cache Maven packages | |
uses: actions/[email protected] | |
env: | |
cache-name: cache-mvn-temurin-17 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Test with Maven | |
run: mvn -B test -Djava.version=17 --file pom.xml | |
# - name: Build the Docker image | |
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
logout: false | |
- name: Build backend image | |
uses: mamezou-tech/[email protected] | |
with: | |
image: ${{ secrets.DOCKERHUB_USERNAME }}/spring-on-k8s | |
path: . | |
builder: paketobuildpacks/builder:base | |
env: 'BP_JVM_VERSION=17.*' | |
- name: Push backend image | |
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/spring-on-k8s:latest |