mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
Switch to shell script for docker encapsulation, forward env variables
This commit is contained in:
parent
39cff4f554
commit
5cc00be801
2 changed files with 22 additions and 0 deletions
22
android/containerized_build.sh
Executable file
22
android/containerized_build.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -xeuo pipefail
|
||||||
|
|
||||||
|
DOCKER_IMAGE_NAME="hifi_androidbuild"
|
||||||
|
|
||||||
|
docker build --build-arg BUILD_UID=`id -u` -t "${DOCKER_IMAGE_NAME}" -f docker/Dockerfile docker
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
--security-opt seccomp:unconfined \
|
||||||
|
-v "${WORKSPACE}":/home/jenkins/hifi \
|
||||||
|
-e "RELEASE_NUMBER=${RELEASE_NUMBER}" \
|
||||||
|
-e "RELEASE_TYPE=${RELEASE_TYPE}" \
|
||||||
|
-e "ANDROID_BUILD_TARGET=assembleDebug" \
|
||||||
|
-e "CMAKE_BACKTRACE_URL=${CMAKE_BACKTRACE_URL}" \
|
||||||
|
-e "CMAKE_BACKTRACE_TOKEN=${CMAKE_BACKTRACE_TOKEN}" \
|
||||||
|
-e "CMAKE_BACKTRACE_SYMBOLS_TOKEN=${CMAKE_BACKTRACE_SYMBOLS_TOKEN}" \
|
||||||
|
-e "GA_TRACKING_ID=${GA_TRACKING_ID}" \
|
||||||
|
-e "GIT_PR_COMMIT=${GIT_PR_COMMIT}" \
|
||||||
|
-e "VERSION_CODE=${VERSION_CODE}" \
|
||||||
|
"${DOCKER_IMAGE_NAME}" \
|
||||||
|
sh -c "./build_android.sh"
|
Loading…
Reference in a new issue