[evince/wip/gpoo/build-registry-image-from-ci] ci: Add new job to generate the docker image




commit 32071fc2db9ff4b8b0715af9d01040435f0da93d
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Wed Aug 24 21:30:11 2022 -0400

    ci: Add new job to generate the docker image
    
    We use our own image to make the pipelines run faster (by avoiding
    installing the dependencies on every job). We now add a job in the
    ci to help create/update the images from the ci itself.

 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e3dd2821a..564c66694 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_
 stages:
     - build
     - deploy
+    - update registry image
 
 variables:
     BUNDLE: "org.gnome.Evince.flatpak"
@@ -63,3 +64,18 @@ nightly:
     dependencies:
         - flatpak
     extends: .publish_nightly
+
+update registry image:
+    image: registry.gitlab.gnome.org/gnome/evince/x86_64-ubuntu:poppler
+    stage: image
+    script:
+        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+        - docker build -t $CI_REGISTRY_IMAGE -f .gitlab-ci/ubuntu.Dockerfile
+        - env
+    when: manual
+    only:
+        - web
+        - main
+    except:
+        variables:
+            - $CI_PROJECT_NAMESPACE != "GNOME"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]