From 48e0f8c0662c82213734c057e1333dc654007c1b Mon Sep 17 00:00:00 2001 From: Howard Gao Date: Wed, 18 Dec 2024 20:28:04 +0800 Subject: [PATCH] [NO-ISSUE] Fix java runtime issue in ci workflow The artemis image is now compiled with jdk17. In ci workflow the java env is still java 11 (class version 55) Need to setup java to support java 17 runtime --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 444e779..2c110f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,12 @@ jobs: cekit --verbose build --dry-run --overrides "{'labels': [{'name': 'quay.expires-after', 'value': '90d'}, {'name': 'git-sha', 'value': '$GITHUB_SHA'}]}" podman podman build --platform linux/amd64 --platform linux/arm64 --manifest $IMAGE_NAME:dev.latest ./target/image + - name: Set up java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - name: Check the image run: | CONTAINER_ID=$(podman run --detach --network=host --env AMQ_USER=admin --env AMQ_PASSWORD=admin $IMAGE_NAME:dev.latest)