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



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

    ci: Generate images over GitLab

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


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