Skip to content

Add jar builder

Add jar builder #257

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Create and publish a Docker image
on:
push:
branches: ['master']
tags: ['v*']
pull_request:
branches: ['master']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
call-workflow-build-publish-docker-image:
uses: bikehopper/github-workflows/.github/workflows/build-publish-docker-image.yml@main
secrets: inherit
build-publish-jar:
runs-on: ${{ matrix.platform == 'linux/arm64' && 'arm64' || 'ubuntu-latest' }}
strategy:
matrix:
platform: ['linux/amd64', 'linux/arm64']
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 11 for x64
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# cache: 'maven'
- run: mvn clean install -DskipTests