chore(deps): update dependency com.diffplug.spotless:spotless-maven-p… #193
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
name: build and test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-maven: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v5 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: "maven" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
tags: | | |
type=sha | |
type=ref,event=branch | |
- name: Build with Maven | |
env: | |
IMAGE_NAME: ghcr.io/${{ github.repository }} | |
IMAGE_RAW_TAGS: ${{ steps.meta.outputs.tags }} | |
REGISTRY_USER: ${{ github.repository_owner }} | |
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
export IMAGE_TAGS="${IMAGE_RAW_TAGS//$'\n'/,}" | |
mvn -B -ntp -P build-image,publish verify |