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



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

    ci: Build images over CI

 .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..4d2c724d 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]