Skip to content

chore: fix variable name typo #1066

chore: fix variable name typo

chore: fix variable name typo #1066

Workflow file for this run

name: "Chiselled Ubuntu 'jre' Tests"
on:
pull_request:
push:
env:
image-name: ubuntu/jre:test
build-image-name: ubuntu/jre:test-builder
maven-image-name: ubuntu/jre:test-maven
maven-image-base: maven:3.9.9-eclipse-temurin-21
jobs:
build:
runs-on: ubuntu-24.04
name: Build and Test
strategy:
fail-fast: false
matrix:
ubuntu-release: ["24.04"]
arch: ["amd64"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
- name: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: 5.21/candidate
- name: Setup rockcraft
run: |
rm -rf /home/runner/.local/state/rockcraft/log/*
sudo snap remove rockcraft || true
sudo snap install rockcraft --classic
- name: Tests Maven cache
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Tests Petclinic
uses: actions/cache@v4
with:
path: tests/petclinic-test/spring-petclinic
key: tests-petclinic-test-spring-petclinic
restore-keys: |
tests-petclinic-test-spring-petclinic
- name: Build the jre image
run: |
cd jre/ubuntu-24.04-headless
rockcraft pack --build-for amd64
rockcraft.skopeo copy oci-archive:jre_21-edge_${{ matrix.arch }}.rock docker-daemon:${{ env.image-name }} \;
- name: Build the JDK docker image
run: |
docker build \
-t ${{ env.build-image-name }} \
--build-arg ARCH=${{ matrix.arch }}
--build-arg UID=$(id -u ${USER}) \
--build-arg GID=$(id -g ${USER}) \
-f tests/containers/builder/Dockerfile.${{ matrix.ubuntu-release }} \
tests/containers/builder
- name: Build Maven docker image
run: |
docker build \
-t ${{ env.maven-image-name }} \
--build-arg ARCH=${{ matrix.arch }}
--build-arg UID=$(id -u ${USER}) \
--build-arg GID=$(id -g ${USER}) \
--build-arg BASE_IMAGE=${{ env.image-name }} \
--build-arg MAVEN_IMAGE=${{ env.maven-image-base }} \
-f tests/containers/maven/Dockerfile.${{ matrix.ubuntu-release }} \
tests/containers/maven
- name: Build benchmark docker images
run: |
cd benchmark && make
- name: Run Tests
working-directory: ${{ github.workspace }}/tests/
run: |
./run-all-tests ${{ env.image-name }} \
${{ env.build-image-name }} \
${{ runner.temp }}/.m2 \
${{ env.maven-image-name }}
multi-arch-build:
runs-on: ubuntu-24.04
name: Multi Architecture Build
strategy:
fail-fast: false
matrix:
ubuntu-release: ["24.04"]
arch: ["amd64", "arm64"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: 5.21/candidate
- name: Setup rockcraft
run: |
rm -rf /home/runner/.local/state/rockcraft/log/*
sudo snap remove rockcraft || true
sudo snap install rockcraft --classic
# Lint the Dockerfiles
- name: Lint the Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: jre/Dockerfile.${{ matrix.ubuntu-release }}
ignore: DL3008,DL3015,SC3028
- name: Build the jre image
run: |
cd jre/ubuntu-24.04-headless
rockcraft pack