ci: an idea
All checks were successful
Docker Image CI / build-and-push (map[build-args:[] context:./ dockerfile:Dockerfile.piped image_name:piped]) (push) Successful in 11s
Docker Image CI / build-and-push (map[build-args:[WITH_JDK=false] context:./ dockerfile:Dockerfile.openj9 image_name:openj9]) (push) Successful in 2m25s

This commit is contained in:
Даниил 2025-03-12 18:30:22 +04:00
parent 404dec0f40
commit 7fd893bb6e
Signed by: nm17
GPG key ID: 3303B70C59145CD4
2 changed files with 14 additions and 8 deletions

View file

@ -2,7 +2,7 @@ name: Docker Image CI
on: on:
push: push:
branches: ['main']
pull_request: pull_request:
env: env:
@ -24,9 +24,11 @@ jobs:
- dockerfile: 'Dockerfile.openj9' - dockerfile: 'Dockerfile.openj9'
image_name: 'openj9' image_name: 'openj9'
context: './' context: './'
build-args: ["WITH_JDK=false"]
- dockerfile: 'Dockerfile.piped' - dockerfile: 'Dockerfile.piped'
image_name: 'piped' image_name: 'piped'
context: './' context: './'
build-args: []
# Add more images as needed # Add more images as needed
steps: steps:
@ -67,3 +69,4 @@ jobs:
push: ${{ github.event_name == 'push' }} push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: ${{ matrix.images.build-args }}

View file

@ -58,14 +58,17 @@ ENV TEST_JDK_HOME=/build/src/build/linux-x86_64-server-release/images/jdk
ENV TEST_ROOT=/build/openj9-repo/test ENV TEST_ROOT=/build/openj9-repo/test
ENV DIAGNOSTICLEVEL=nodetails ENV DIAGNOSTICLEVEL=nodetails
RUN git clone --depth=1 https://github.com/eclipse-openj9/openj9.git /build/openj9-repo # RUN git clone --depth=1 https://github.com/eclipse-openj9/openj9.git /build/openj9-repo
RUN cd /build/openj9-repo/test \ # RUN cd /build/openj9-repo/test \
&& git clone https://github.com/adoptium/TKG.git \ # && git clone https://github.com/adoptium/TKG.git \
&& cd TKG \ # && cd TKG \
&& make compile -j$(nproc) \ # && make compile -j$(nproc) \
&& make _sanity.openjdk.regular -j$(nproc) # && make _testList TESTLIST=jit_jitt,jit_recognizedMethod,testSCCMLTests2_1 -j$(nproc)
RUN ls /build/src/build/linux-x86_64-server-release/images
RUN ls /build/src/build/linux-x86_64-server-release/images/jdk
RUN ls /build/src/build/linux-x86_64-server-release/images/jre
WORKDIR /build/src/build/linux-x86_64-server-release/images WORKDIR /build/src/build/linux-x86_64-server-release/images
RUN mv ./* /build/dist/ RUN mv ./* /build/dist/