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



commit 0f753f9c635ec6fc30e1ed3165bf673c8efda7bf
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..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]