mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
build.Containerfile: use a project subdirectory
This commit is contained in:
parent
ed00894f88
commit
42e3ffbc77
1 changed files with 5 additions and 5 deletions
|
@ -23,17 +23,17 @@ RUN /usr/bin/apt-get update && \
|
|||
# give up privileges
|
||||
USER builder
|
||||
|
||||
# copy source code
|
||||
# copy project source code
|
||||
WORKDIR /home/builder
|
||||
COPY --chown=builder / .
|
||||
COPY --chown=builder / project/
|
||||
|
||||
# accept SDK licenses
|
||||
ENV ANDROID_HOME /home/builder/android-sdk
|
||||
RUN yes | /usr/bin/sdkmanager --licenses >/dev/null
|
||||
|
||||
# build
|
||||
RUN /usr/bin/gradle --no-build-cache --no-daemon --no-parallel clean :oeffi:assembleRelease
|
||||
# build project
|
||||
RUN /usr/bin/gradle --project-dir project/ --no-build-cache --no-daemon --no-parallel clean :oeffi:assembleRelease
|
||||
|
||||
# export build output
|
||||
FROM scratch AS export-stage
|
||||
COPY --from=build-stage /home/builder/oeffi/build/outputs/apk/*/release/oeffi-*-release-unsigned.apk /
|
||||
COPY --from=build-stage /home/builder/project/oeffi/build/outputs/apk/*/release/oeffi-*-release-unsigned.apk /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue