mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
a99cdc8909
Declare an docker build-arg [1] and use it whenever cloning one of our repositories. If the buildarg is not specified, the variable defaults back to 'master' and thus the current behavior doesn't change. From the .gitlab-ci.yml file, when building pass the GST_UPSTREAM_BRANCH that's defined from the ci_template as the buildarg so we will be building the corresponding branches for the docker images. Close #33 [1] https://docs.docker.com/engine/reference/builder/#arg
11 lines
243 B
Docker
11 lines
243 B
Docker
FROM registry.fedoraproject.org/fedora:31
|
|
|
|
ENV ANDROID_HOME=/android/sdk
|
|
ENV ANDROID_NDK_HOME=/android/ndk
|
|
|
|
ARG DEFAULT_BRANCH="master"
|
|
|
|
COPY prepare.sh cleanup.sh /root/
|
|
|
|
RUN /usr/bin/sh /root/prepare.sh && \
|
|
/usr/bin/sh /root/cleanup.sh
|