Skip to content

Commit 2ff02cc

Browse files
committed
Fix mvn build in docs.sh and use proper JDK17 img
1 parent c0161e1 commit 2ff02cc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
################################################################################
1919
set -e
2020

21-
export JAVA_HOME=$JAVA_HOME_11_X64
21+
export JAVA_HOME=$JAVA_HOME_17_X64
2222

2323
# setup hugo
2424
HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.104.0/hugo_extended_0.104.0_Linux-64bit.tar.gz

.github/workflows/docs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ jobs:
4949
fi
5050
- name: Build documentation
5151
run: |
52-
docker run --rm --volume "$PWD:/root/flink-kubernetes-operator" chesnay/flink-ci:java_8_11 bash -c "cd /root/flink-kubernetes-operator && ./.github/workflows/docs.sh"
52+
docker run --rm --user "$(id -u):$(id -g)" \
53+
-v "$PWD:/workdir/flink-kubernetes-operator" \
54+
--workdir /workdir \
55+
chesnay/flink-ci:java_8_11_17_maven_386 \
56+
bash -c 'cd /workdir/flink-kubernetes-operator && ./.github/workflows/docs.sh'
5357
- name: Upload documentation
5458
uses: ./.github/actions/rsync-deployments
5559
with:

0 commit comments

Comments
 (0)