From 7aa1450b3a9f69f0751bf1353c5b0b7c86c1f399 Mon Sep 17 00:00:00 2001
From: Edward Hervey <bilboed@bilboed.com>
Date: Fri, 29 Nov 2024 09:07:52 +0100
Subject: [PATCH] gitlab-ci: Don't use massive image for cerbero trigger

Just use a lightweight alpine:latest image

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1960>
---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 329ae327d..4ac6c0c33 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,6 @@ variables:
   # The tag name is included above from the main repo.
   GSTREAMER_DOC_IMAGE: "registry.freedesktop.org/gstreamer/gstreamer/amd64/fedora:$FEDORA_TAG-main"
   # Use the gstreamer image to trigger the cerbero job, same as the monorepo
-  CERBERO_TRIGGER_IMAGE: "registry.freedesktop.org/gstreamer/gstreamer/amd64/fedora:$FEDORA_TAG-main"
   WINDOWS_BASE: "registry.freedesktop.org/gstreamer/gstreamer-rs/windows"
   WINDOWS_RUST_MINIMUM_IMAGE: "$WINDOWS_BASE:$GST_RS_IMG_WINDOWS_TAG-main-$GST_RS_MSRV"
   WINDOWS_RUST_STABLE_IMAGE: "$WINDOWS_BASE:$GST_RS_IMG_WINDOWS_TAG-main-$GST_RS_STABLE"
@@ -424,7 +423,7 @@ coverage:
         path: coverage.xml
 
 cerbero trigger:
-  image: $CERBERO_TRIGGER_IMAGE
+  image: python:alpine
   needs: [ "trigger" ]
   timeout: '4h'
   tags:
@@ -433,7 +432,8 @@ cerbero trigger:
     # We will build this cerbero branch in the cerbero trigger CI
     CERBERO_UPSTREAM_BRANCH: 'main'
   script:
-    - ci/cerbero/trigger_cerbero_pipeline.py
+    - pip install python-gitlab
+    - python ci/cerbero/trigger_cerbero_pipeline.py
   rules:
     # Never run post merge
     - if: '$CI_PROJECT_NAMESPACE == "gstreamer"'
-- 
GitLab