File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 23
23
name : Flink Kubernetes Operator CI
24
24
on :
25
25
push :
26
+ branches :
27
+ - main
28
+ - release-*
26
29
pull_request :
27
30
jobs :
28
31
test_ci :
@@ -163,7 +166,8 @@ jobs:
163
166
export SHELL=/bin/bash
164
167
export DOCKER_BUILDKIT=1
165
168
eval $(minikube -p minikube docker-env)
166
- docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest --progress plain .
169
+ export JAVA_VERSION=${{ matrix.java-version }}
170
+ docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest --progress plain --build-arg JAVA_VERSION="${JAVA_VERSION:-11}" .
167
171
docker images
168
172
- name : Start the operator
169
173
run : |
Original file line number Diff line number Diff line change 16
16
# limitations under the License.
17
17
# ###############################################################################
18
18
# 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
20
21
ARG SKIP_TESTS=true
21
22
22
23
WORKDIR /app
@@ -33,7 +34,7 @@ RUN cd /app/tools/license; mkdir jars; cd jars; \
33
34
cd ../ && ./collect_license_files.sh ./jars ./licenses-output
34
35
35
36
# stage
36
- FROM eclipse-temurin:11 -jre-jammy
37
+ FROM eclipse-temurin:${JAVA_VERSION} -jre-jammy
37
38
ENV FLINK_HOME=/opt/flink
38
39
ENV FLINK_PLUGINS_DIR=$FLINK_HOME/plugins
39
40
ENV OPERATOR_VERSION=1.10-SNAPSHOT
You can’t perform that action at this time.
0 commit comments