You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/08/27 08:02:42 UTC

[skywalking-java] branch main updated: Build more docker images based on different JDK version for testing (#10)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git


The following commit(s) were added to refs/heads/main by this push:
     new 20fb8c8  Build more docker images based on different JDK version for testing (#10)
20fb8c8 is described below

commit 20fb8c81b3da76ba6628d34c12d23d3d45c973ef
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Fri Aug 27 16:02:05 2021 +0800

    Build more docker images based on different JDK version for testing (#10)
---
 .github/workflows/ci.yaml             | 4 ++--
 .github/workflows/publish-docker.yaml | 7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index c765f4c..b643ada 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -72,10 +72,10 @@ jobs:
       - name: Check Javaagent Plugin List
         run: tools/plugin/check-javaagent-plugin-list.sh
       - name: Install and Test
-        if: matrix.java-version == '8'
+        if: matrix.java-version == '8' && matrix.os != 'windows'
         run: ./mvnw -q --batch-mode clean verify install javadoc:javadoc
       - name: Install and Test
-        if: matrix.java-version == '11'
+        if: matrix.java-version == '11' || matrix.os == 'windows'
         run: ./mvnw -q --batch-mode clean verify install
 
   ci:
diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml
index 9f33227..dad3a20 100644
--- a/.github/workflows/publish-docker.yaml
+++ b/.github/workflows/publish-docker.yaml
@@ -23,18 +23,23 @@ on:
 
 env:
   SKIP_TEST: true
-  NAME: skywalking-java
   HUB: ghcr.io/apache/skywalking-java
 
 jobs:
   build:
     if: github.repository == 'apache/skywalking-java'
+    name: Build and Push Docker
     runs-on: ubuntu-latest
     permissions:
       contents: read
       packages: write
     timeout-minutes: 60
+    strategy:
+      matrix:
+        java-version: [ 8, 9, 10, 11, 12, 13, 14, 15, 16 ]
     env:
+      BASE_IMAGE: adoptopenjdk/openjdk${{ matrix.java-version }}:alpine
+      NAME: jdk-${{ matrix.java-version }}
       TAG: ${{ github.sha }}
     steps:
       - uses: actions/checkout@v2