gitlab-ci: install correct version of ci-templates in build script

It's not clear that ci-fairy has a stable API. Instead, we pin the
version by specifying the git commit sha.

In the build script, install the pinned version.
This commit is contained in:
Thomas Haller 2020-11-17 09:47:36 +01:00
parent 539c00a8a1
commit f1ff6fe8b7
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 5 additions and 3 deletions

View file

@ -41,10 +41,10 @@ variables:
# changing these will force rebuilding the associated image
# Note: these tags have no meaning and are not tied to a particular
# libinput version
FEDORA_TAG: '2020-11-17.0-13e145ea4f89'
FEDORA_TAG: '2020-11-17.0-62ff0634a962'
UBUNTU_TAG: '2020-11-17.0-a7a0eae3a046'
DEBIAN_TAG: '2020-11-17.0-f3fdbff29bf1'
CENTOS_TAG: '2020-11-17.0-5ab38b9bd66e'
CENTOS_TAG: '2020-11-17.0-212105f711c8'
FEDORA_EXEC: 'bash .gitlab-ci/fedora-install.sh'
UBUNTU_EXEC: 'bash .gitlab-ci/ubuntu-install.sh'

View file

@ -48,6 +48,8 @@ if [ -x /usr/bin/ninja ] && ! [ -x /usr/bin/ninja-build ]; then
fi
if [ $IS_FEDORA = 1 ]; then
TEMPLATE_SHA="$(sed -n 's/^.templates_sha: *\&template_sha *\([0-9a-f]\+\) .*/\1/p' ./.gitlab-ci/ci.template)"
test -n "$TEMPLATE_SHA"
dnf install -y python3-pip
pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates
pip3 install "git+http://gitlab.freedesktop.org/freedesktop/ci-templates@$TEMPLATE_SHA"
fi