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




commit 6e0aebb7d2ac8b77b119578df12f92361c91910f
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..c5b7d6353 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,3 +63,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]