Skip to content

build: Remove ubuntu user if base image added it #1

build: Remove ubuntu user if base image added it

build: Remove ubuntu user if base image added it #1

Workflow file for this run

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 }}