Skip to content

Bump maven-surefire-plugin from 3.0.0-M9 to 3.1.0 #445

Bump maven-surefire-plugin from 3.0.0-M9 to 3.1.0

Bump maven-surefire-plugin from 3.0.0-M9 to 3.1.0 #445

Workflow file for this run

name: Build and Test
on:
pull_request:
branches: [ master ]
jobs:
build-and-test-maven:
name: Build and Test Maven
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-package: jdk
- name: Build project with Maven
run: mvn -B package --file pom.xml
build-docker-image:
name: Build Docker image
runs-on: ubuntu-latest
needs: [ build-and-test-maven ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2.1.0
with:
#platforms: linux/amd64,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm64
- name: Available QEMU platforms
run: echo ${{ steps.qemu.outputs.platforms }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: buildx builder instance name
run: echo ${{ steps.buildx.outputs.name }}
- name: Available buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-package: jdk
- name: Build project with Maven
run: mvn -B package --file pom.xml
- name: Build image
id: docker_build
uses: docker/build-push-action@v4.0.0
with:
context: .
file: ./Dockerfile
#platforms: linux/amd64,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm64
push: false
tags: |
${{ github.run_number }}-${{ github.sha }}
latest
- name: Docker image digest
run: echo ${{ steps.docker_build.outputs.digest }}