From f051ad24882f1cc7ed974ae9dd33ec47809109d3 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 22 Sep 2022 17:52:42 +0530 Subject: [PATCH] ci: Move image tags into a separate template yml This will allow gst-plugins-rs documentation CI to include this template via a remote include and doesn't need to manually update the image. This causes cascading failures across all repos, for example https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/874 is required for making gst-plugins-rs CI pass in Cerbero, which is also run on the gstreamer monorepo. Part-of: --- .gitlab-ci.yml | 27 +++++++-------------------- .gitlab-image-tags.yml | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 .gitlab-image-tags.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87c03febd0..03404f3357 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,13 @@ include: - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/14731f78c23c7b523a85a26a068ade9ac1ecd2f3/templates/fedora.yml" - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/14731f78c23c7b523a85a26a068ade9ac1ecd2f3/templates/debian.yml" + ### + # IMPORTANT + # These are the version tags for the docker images the CI runs against. + # If you are hacking on them or need a them to rebuild, you need to change + # the appropriate version string in this file which will cause a rebuild. + ### + - local: '.gitlab-image-tags.yml' stages: - 'trigger' @@ -18,26 +25,6 @@ variables: # Branch to track for modules that have no ref specified in the manifest GST_UPSTREAM_BRANCH: 'main' - ### - # IMPORTANT - # These are the version tags for the docker images the CI runs against. - # If you are hacking on them or need a them to rebuild, its enough - # to change any part of the string of the image you want. - ### - FEDORA_TAG: '2022-09-22.0' - INDENT_TAG: '2022-03-07.1' - WINDOWS_TAG: "2022-09-17.0" - - GST_UPSTREAM_REPO: 'gstreamer/gstreamer' - FDO_UPSTREAM_REPO: 'gstreamer/gstreamer' - - FEDORA_AMD64_SUFFIX: 'amd64/fedora' - INDENT_AMD64_SUFFIX: 'amd64/gst-indent' - WINDOWS_AMD64_SUFFIX: 'amd64/windows' - - WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" - WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" - MESON_BUILDTYPE_ARGS: --default-library=both DEFAULT_MESON_ARGS: > -Dlibnice:tests=disabled diff --git a/.gitlab-image-tags.yml b/.gitlab-image-tags.yml new file mode 100644 index 0000000000..f0be6266ed --- /dev/null +++ b/.gitlab-image-tags.yml @@ -0,0 +1,20 @@ +variables: + ### + # IMPORTANT + # These are the version tags for the docker images the CI runs against. + # If you are hacking on them or need a them to rebuild, its enough + # to change any part of the string of the image you want. + ### + FEDORA_TAG: '2022-09-22.0' + INDENT_TAG: '2022-03-07.1' + WINDOWS_TAG: "2022-09-17.0" + + GST_UPSTREAM_REPO: 'gstreamer/gstreamer' + FDO_UPSTREAM_REPO: 'gstreamer/gstreamer' + + FEDORA_AMD64_SUFFIX: 'amd64/fedora' + INDENT_AMD64_SUFFIX: 'amd64/gst-indent' + WINDOWS_AMD64_SUFFIX: 'amd64/windows' + + WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" + WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"