Skip to content

Merge pull request #310 from polagoab/dependabot/maven/org.apache.mav… #126

Merge pull request #310 from polagoab/dependabot/maven/org.apache.mav…

Merge pull request #310 from polagoab/dependabot/maven/org.apache.mav… #126

Workflow file for this run

# Build and deploy to ghcr.io
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Build and Deploy
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 8
cache: maven
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Maven
run: mvn -N --ntp -V -e -B -C io.takari:maven:wrapper -Dmaven=3.8.1
- name: Build with Maven
run: ./mvnw -V -e -B -C -Pit clean verify
- name: Build and Deploy Site with Maven
run: ./mvnw -V -e -B -C -Psite,site-deploy site -Doci.repo.prefix=ghcr.io/${{ github.repository }}/