-
Notifications
You must be signed in to change notification settings - Fork 65
41 lines (36 loc) · 993 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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/checkout@v4.2.1
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0
- name: Build
id: docker_build
uses: docker/build-push-action@v6.9.0
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 }}