+include: "gitlab/ci_template.yml"
+
stages:
- "build docker"
- "preparation"
- export _UID="${IMAGE}:${DATE}-${CI_JOB_ID}"
- export LATEST="${IMAGE}:latest"
- - docker build --pull -f ${DOCKERFILE} -t ${LATEST} ${CONTEXT_DIR}
+ - docker build --pull --build-arg DEFAULT_BRANCH=${GST_UPSTREAM_BRANCH} -f ${DOCKERFILE} -t ${LATEST} ${CONTEXT_DIR}
# If we are in a fork, push the image to the reigstry regardless the branch
- |
DOCKERFILE: "docker/android/Dockerfile"
extends: .base
-include: "gitlab/ci_template.yml"
-
.build local:
extends: '.build'
when: 'manual'
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 && \
tar -xvf /android/sources/gstreamer-android.tar.xz -C $GSTREAMER_ROOT_ANDROID
ls $GSTREAMER_ROOT_ANDROID
-git clone https://gitlab.freedesktop.org/gstreamer/gst-examples.git /android/sources/gst-examples
+git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/gst-examples.git /android/sources/gst-examples
chmod +x /android/sources/gst-examples/playback/player/android/gradlew
/android/sources/gst-examples/playback/player/android/gradlew --no-search-upward --no-daemon --project-dir /android/sources/gst-examples/playback/player/android dependencies --refresh-dependencies
-git clone https://gitlab.freedesktop.org/gstreamer/gst-docs.git /android/sources/gst-docs
+git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/gst-docs.git /android/sources/gst-docs
chmod +x /android/sources/gst-docs/examples/tutorials/android/gradlew
/android/sources/gst-docs/examples/tutorials/android/gradlew --no-search-upward --no-daemon --project-dir /android/sources/gst-docs/examples/tutorials/android dependencies --refresh-dependencies
FROM python:3.7.1-alpine
+ARG DEFAULT_BRANCH="master"
+
RUN pip install requests
RUN apk add git
-RUN cd / && git clone https://gitlab.freedesktop.org/gstreamer/gst-ci.git
\ No newline at end of file
+RUN cd / && git clone -b ${DEFAULT_BRANCH:=master} https://gitlab.freedesktop.org/gstreamer/gst-ci.git
ENV TERM="dumb"
+ARG DEFAULT_BRANCH="master"
+
# System setup
RUN echo "fastestmirror=true" >> /etc/dnf/dnf.conf && \
dnf upgrade -y && \
RUN git config --global user.email "cerbero@gstreamer.freedesktop.org" && \
git config --global user.name "Cerbero Build System"
-RUN git clone https://gitlab.freedesktop.org/gstreamer/cerbero.git && \
+RUN git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/cerbero.git && \
mkdir $HOME/.cerbero && \
echo "allow_parallel_build=True" > $HOME/.cerbero/cerbero.cbc && \
echo "use_ccache=True" >> $HOME/.cerbero/cerbero.cbc && \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
+ARG DEFAULT_BRANCH="master"
+
COPY prepare.sh cleanup.sh /root/
RUN /usr/bin/sh /root/prepare.sh && \
rustc --version
# get gst-build and make all subprojects available
-git clone git://anongit.freedesktop.org/gstreamer/gst-build /gst-build/
+git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/gst-build.git /gst-build/
cd /gst-build
meson subprojects download