Skip to content

Java

Java #21

Workflow file for this run

name: Java
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
push:
branches:
- main
paths:
- java/**
jobs:
push:
name: "images:java_${{ matrix.version }}-${{ matrix.vendor }}-${{ matrix.platform }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [8, 11, 17, 21]
vendor: [temurin, semeru, graalvm]
platform: [linux/amd64, linux/arm64]
exclude:
- version: 8
vendor: graalvm
platform: linux/arm64
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: ./java
file: ./java/${{ matrix.version }}/${{ matrix.vendor }}/Dockerfile
platforms: ${{ matrix.platform }}
push: true
tags: |
ghcr.io/pizzabytellc/images:java_${{ matrix.version }}-${{ matrix.vendor }}