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

mbalassi pushed a commit to branch release-0.1
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git

commit 3914c33d04fb3f148d6f0cf9d0ee54041f9df9d4
Author: Marton Balassi <[email protected]>
AuthorDate: Tue Mar 29 16:37:01 2022 +0200

    [FLINK-26214] Only run Maven tests in Docker during CI
---
 .github/workflows/ci.yml | 4 ++--
 Dockerfile               | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 800d956..cab3619 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -56,7 +56,7 @@ jobs:
           export SHELL=/bin/bash
           export DOCKER_BUILDKIT=1
           eval $(minikube -p minikube docker-env)
-          docker build --progress=plain --no-cache -f ./Dockerfile -t 
flink-kubernetes-operator:ci-latest .
+          docker build --progress=plain  --build-arg SKIP_TESTS=false 
--no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest .
           docker images
       - name: Start the operator
         run: |
@@ -101,7 +101,7 @@ jobs:
           distribution: 'adopt'
       - name: Build with Maven
         run: |
-          set -o pipefail; mvn clean install | tee ./mvn.log; set +o pipefail
+          set -o pipefail; mvn clean install -DskipTests | tee ./mvn.log; set 
+o pipefail
           if [[ $(grep -c "overlapping classes" ./mvn.log) -gt 0 ]];then
             echo "Found overlapping classes, please fix"
             exit 1
diff --git a/Dockerfile b/Dockerfile
index 2cd1133..924187d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,6 +17,7 @@
 
################################################################################
 # Build
 FROM maven:3.8.4-openjdk-11 AS build
+ARG SKIP_TESTS=true
 
 WORKDIR /app
 ENV SHADED_DIR=flink-kubernetes-shaded
@@ -35,7 +36,7 @@ COPY $WEBHOOK_DIR/src ./$WEBHOOK_DIR/src
 
 COPY tools ./tools
 
-RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install
+RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install 
-DskipTests=$SKIP_TESTS
 
 # stage
 FROM openjdk:11-jre

Reply via email to