[gjs: 11/16] CI: Replace jobs that pull from DockerHub with CI templates




commit a5de7e27d9e693de3df1bb63951b94d5090e2e38
Author: Philip Chimento <philip chimento gmail com>
Date:   Fri Nov 20 15:19:34 2020 -0800

    CI: Replace jobs that pull from DockerHub with CI templates
    
    DockerHub is rate-limiting pulls that come from the same IP, which is a
    big problem for GNOME's GitLab CI runners.
    
    Use CI templates instead, to store images in this project's own container
    registry.
    
    Documentation:
    https://freedesktop.pages.freedesktop.org/ci-templates/templates.html

 .gitlab-ci.yml | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c68b1033..ed49e2b6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,28 @@
 # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 ---
+include:
+  - remote: 
'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/alpine.yml'
+
 stages:
-- source_check
-- test
-- thorough_tests
-- manual
-- deploy
+  - prepare
+  - source_check
+  - test
+  - thorough_tests
+  - manual
+  - deploy
+
+.gjs-alpine:
+  variables:
+    FDO_DISTRIBUTION_TAG: '2020-11-20.0'
+    FDO_UPSTREAM_REPO: GNOME/gjs
+
+build-alpine-image:
+  extends:
+    - .fdo.container-build@alpine@x86_64
+    - .gjs-alpine
+  stage: prepare
+  variables:
+    FDO_DISTRIBUTION_PACKAGES: cppcheck yarn
 
 .coverage: &coverage
   image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs78-debug
@@ -133,7 +150,9 @@ pages:
 #############################################
 cppcheck:
   when: on_success
-  image: uilianries/docker-cppcheck
+  extends:
+    - .fdo.distribution-image@alpine
+    - .gjs-alpine
   stage: source_check
   script:
     - cppcheck . -v -f -q -UHAVE_PRINTF_ALTERNATIVE_INT --error-exitcode=1 --inline-suppr 
--library=gtk,tools/cppcheck.cfg --enable=warning,performance,portability
@@ -171,7 +190,9 @@ cpplint:
 
 eslint:
   when: on_success
-  image: node:12
+  extends:
+    - .fdo.distribution-image@alpine
+    - .gjs-alpine
   stage: source_check
   script:
     - ./tools/run_eslint.sh


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