Skip to content

Commit

Permalink
set JAVA_HOME from JAVA_VERSION environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Jan 18, 2024
1 parent 8d418f3 commit 305d29f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .buildkite/basic/react-native-android-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ steps:
- "android-builder-image"
timeout_in_minutes: 60
env:
JAVA_VERSION: "17"
REACT_NATIVE_VERSION: "rn0.73"
RN_NEW_ARCH: "false"
ARTEFACT_NAME: "rn0.73-old-arch"
Expand All @@ -49,6 +50,7 @@ steps:
- "android-builder-image"
timeout_in_minutes: 60
env:
JAVA_VERSION: "17"
REACT_NATIVE_VERSION: "rn0.73"
RN_NEW_ARCH: "true"
ARTEFACT_NAME: "rn0.73-new-arch"
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ services:
- NOTIFIER_VERSION
- ARTEFACT_NAME
- JS_SOURCE_DIR
- JAVA_VERSION: "${JAVA_VERSION:-11}"
networks:
default:
aliases:
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.react-native-android-builder
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ COPY lerna.json .
COPY scripts/common.js scripts/react-native-helper.js scripts/

# Do a full build by running the container
CMD run-func scripts/react-native-helper.js buildAndroid "/app/test/react-native/features/fixtures" "/app/features/fixtures"
CMD JAVA_HOME=/usr/local/openjdk-${JAVA_VERSION} run-func scripts/react-native-helper.js buildAndroid "/app/test/react-native/features/fixtures" "/app/features/fixtures"

0 comments on commit 305d29f

Please sign in to comment.