feat: build main branch in nightly
This commit is contained in:
parent
b5d60b812c
commit
5f10cfe451
@ -0,0 +1 @@
|
|||||||
|
- [Feature] Enhanced `ANDROID_APP_VERSION` logic to dynamically set the version based on `OPENEDX_COMMON_VERSION`: For nightly builds, `ANDROID_APP_VERSION` is set to main. For other builds, `ANDROID_APP_VERSION` is set to the value of `OPENEDX_COMMON_VERSION`. (by @hamza-56)
|
||||||
@ -35,8 +35,7 @@ RUN yes | /app/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_HOM
|
|||||||
FROM base AS code
|
FROM base AS code
|
||||||
# Install android app repo
|
# Install android app repo
|
||||||
ARG ANDROID_APP_REPOSITORY=https://github.com/openedx/openedx-app-android.git
|
ARG ANDROID_APP_REPOSITORY=https://github.com/openedx/openedx-app-android.git
|
||||||
# Always use the 'main' branch
|
ARG ANDROID_APP_VERSION={% if OPENEDX_COMMON_VERSION == "master" %}main{% else %}{{ OPENEDX_COMMON_VERSION }}{% endif %}
|
||||||
ARG ANDROID_APP_VERSION=main
|
|
||||||
ADD --keep-git-dir $ANDROID_APP_REPOSITORY#$ANDROID_APP_VERSION /app/openedx-app-android
|
ADD --keep-git-dir $ANDROID_APP_REPOSITORY#$ANDROID_APP_VERSION /app/openedx-app-android
|
||||||
|
|
||||||
###### Empty layer to mount custom repo at build time
|
###### Empty layer to mount custom repo at build time
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user