Skip to content

Update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui t… #350

Update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui t…

Update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui t… #350

Workflow file for this run

name: build and test
on:
push:
pull_request:
branches: ["main"]
jobs:
build-maven:
runs-on: ubuntu-latest
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 with Maven
run: mvn -B -ntp verify
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for image
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Build image
uses: docker/build-push-action@v6
with:
context: ./ad2image-app
# dont push image on PRs
push: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}