mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-15 22:29:58 +00:00
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:
parent
539c00a8a1
commit
f1ff6fe8b7
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue