File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,8 @@ jobs:
163163 export SHELL=/bin/bash
164164 export DOCKER_BUILDKIT=1
165165 eval $(minikube -p minikube docker-env)
166- docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest --progress plain .
166+ export JAVA_VERSION=${{ matrix.java-version }}
167+ docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest --progress plain --build-arg JAVA_VERSION="${JAVA_VERSION:-11}" .
167168 docker images
168169 - name : Start the operator
169170 run : |
Original file line number Diff line number Diff line change 1616# limitations under the License.
1717# ###############################################################################
1818# Build
19- FROM maven:3.8.4-eclipse-temurin-11 AS build
19+ ARG JAVA_VERSION=11
20+ FROM maven:3.8.8-eclipse-temurin-${JAVA_VERSION} AS build
2021ARG SKIP_TESTS=true
2122
2223WORKDIR /app
@@ -33,7 +34,7 @@ RUN cd /app/tools/license; mkdir jars; cd jars; \
3334 cd ../ && ./collect_license_files.sh ./jars ./licenses-output
3435
3536# stage
36- FROM eclipse-temurin:11 -jre-jammy
37+ FROM eclipse-temurin:${JAVA_VERSION} -jre-jammy
3738ENV FLINK_HOME=/opt/flink
3839ENV FLINK_PLUGINS_DIR=$FLINK_HOME/plugins
3940ENV OPERATOR_VERSION=1.10-SNAPSHOT
You can’t perform that action at this time.
0 commit comments