docker: allow to specify the branch to pull for various repos
authorJordan Petridis <jordan@centricular.com>
Mon, 10 Feb 2020 13:09:49 +0000 (15:09 +0200)
committerJordan Petridis <jpetridis@gnome.org>
Sun, 8 Mar 2020 18:53:23 +0000 (18:53 +0000)
commita99cdc890911a54285206a04ea5f36e56fa3f775
tree02bb6a77f669ecca2329505dee45a4347d1d07e2
parent3608d69c1fce1fbb3f591ba29b5ba311d9fcd29e
docker: allow to specify the branch to pull for various repos

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
.gitlab-ci.yml
docker/android/Dockerfile
docker/android/prepare.sh
docker/build_manifest/Dockerfile
docker/cerbero/Dockerfile-fedora
docker/fedora/Dockerfile
docker/fedora/prepare.sh