Skip to content

Commit 17a5a15

Browse files
committed
[FlINK-36392] pass MAVEN_HOME as a build arg
1 parent 4fa64ea commit 17a5a15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ jobs:
167167
export DOCKER_BUILDKIT=1
168168
eval $(minikube -p minikube docker-env)
169169
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}" .
170+
env
171+
docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest --progress plain --build-arg JAVA_VERSION="${JAVA_VERSION:-11}" --build-arg MAVEN_HOME="${HOME}/.m2" .
171172
docker images
172173
- name: Start the operator
173174
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ARG JAVA_VERSION=11
2020
FROM maven:3.8.8-eclipse-temurin-${JAVA_VERSION} AS build
2121
ARG SKIP_TESTS=true
22-
ARG MAVEN_HOME=${HOME:~}/.m2
22+
ARG MAVEN_HOME=${HOME}/.m2
2323

2424
WORKDIR /app
2525

0 commit comments

Comments
 (0)