[gvfs/wip/oholy/gnome-build-meta: 2/4] ci: Generate images over GitLab



commit dc28d9a74875b6b3112992fc584f293a6fc18752
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Jan 15 14:43:02 2019 +0100

    ci: Generate images over GitLab
    
    Add a manual job to regenerate Docker image used by CI into GitLab CI
    and use image with :latest tag by default. In case of some failures,
    one can always use another tag.

 .gitlab-ci.yml           | 17 +++++++++++++----
 .gitlab-ci/run-docker.sh | 14 --------------
 2 files changed, 13 insertions(+), 18 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c8cafd35..4e59cb90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,16 @@
-image: registry.gitlab.gnome.org/gnome/gvfs/master:v4
-
-build:
-    stage: build
+fedora:
+    image: $CI_REGISTRY_IMAGE
     script:
         - meson build --werror
         - ninja -C build
+
+update-image:
+    image: docker:latest
+    services:
+        - docker:dind
+    script:
+        - docker build --tag $CI_REGISTRY_IMAGE .gitlab-ci/
+        - docker tag $CI_REGISTRY_IMAGE "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
+        - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
+        - docker push $CI_REGISTRY_IMAGE
+    when: manual


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