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




commit 25497efcba455caa2c0ad179bee7f337af36214d
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 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e3dd2821a..5d7a27a8c 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
+    - image
 
 variables:
     BUNDLE: "org.gnome.Evince.flatpak"
@@ -63,3 +64,17 @@ 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
+    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]