Skip to content

Commit

Permalink
Add a test build
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Jul 30, 2024
1 parent a8c51f8 commit 8ec44ee
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test Build

on:
pull_request:
branches:
- master
paths-ignore:
- "*.md"

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
variant:
- java21
include:
- variant: java21
baseImage: eclipse-temurin:21-jre
platforms: linux/amd64,linux/arm64
tagPrefix: java21-
steps:
- uses: actions/[email protected]

- name: Setup Docker Buildx
uses: docker/[email protected]

- name: Set up QEMU
uses: docker/[email protected]

- name: Build
id: docker_build
uses: docker/[email protected]
with:
platforms: ${{ matrix.platforms }}
# ensure latest base image is used
pull: true
build-args: |
BASE_IMAGE=${{ matrix.baseImage }}
cache-from: type=gha,scope=${{ matrix.variant }}
cache-to: type=gha,mode=max,scope=${{ matrix.variant }}

0 comments on commit 8ec44ee

Please sign in to comment.