Skip to content

Commit f1abea3

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

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/docs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
################################################################################
1919
set -e
2020

21-
export JAVA_HOME=$JAVA_HOME_11_X64
22-
2321
# setup hugo
2422
HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.104.0/hugo_extended_0.104.0_Linux-64bit.tar.gz
2523
HUGO_ARTIFACT=hugo_extended_0.104.0_Linux-64bit.tar.gz
@@ -50,4 +48,5 @@ mvn javadoc:aggregate -B \
5048
-Dspotless.check.skip=true \
5149
-Denforcer.skip=true \
5250
-Dheader="<a href=\"http://flink.apache.org/\" target=\"_top\"><h1>Back to Flink Website</h1></a> <script>var _paq=window._paq=window._paq||[];_paq.push([\"disableCookies\"]),_paq.push([\"setDomains\",[\"*.flink.apache.org\",\"*.nightlies.apache.org/flink\"]]),_paq.push([\"trackPageView\"]),_paq.push([\"enableLinkTracking\"]),function(){var u=\"//matomo.privacy.apache.org/\";_paq.push([\"setTrackerUrl\",u+\"matomo.php\"]),_paq.push([\"setSiteId\",\"1\"]);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s)}();</script>"
51+
5352
mv target/site/apidocs docs/target/api/java

.github/workflows/docs.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ 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 \
53+
--user "$(id -u):$(id -g)" \
54+
--workdir /workdir \
55+
--volume "$PWD:/workdir" \
56+
-e JAVA_HOME=/usr/lib/jvm/jdk-17.0.7+7 \
57+
chesnay/flink-ci:java_8_11_17_21_maven_386_jammy \
58+
sh -c './.github/workflows/docs.sh'
5359
- name: Upload documentation
5460
uses: ./.github/actions/rsync-deployments
5561
with:

0 commit comments

Comments
 (0)