[igt-dev] [PATCH v3 4/6] gitlab-ci: use images tagged with git ref instead of latest

Oleg Vasilev oleg.vasilev at intel.com
Mon Aug 26 13:12:46 UTC 2019


Since different images can be present at the same time, it is better to
always use the one built for this particular git reference.

Signed-off-by: Oleg Vasilev <oleg.vasilev at intel.com>
---
 .gitlab-ci.yml | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3433ca08..f994db77 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: $CI_REGISTRY/$CI_PROJECT_PATH/build-fedora:latest
+image: $CI_REGISTRY/$CI_PROJECT_PATH/build-fedora:$CI_COMMIT_REF_NAME
 variables:
   MESON_OPTIONS: >
     -Dlibdrm_drivers=intel,nouveau,amdgpu
@@ -148,7 +148,7 @@ build:tests-fedora-clang:
       - build
 
 build:tests-debian-meson:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian:$CI_COMMIT_REF_NAME
   stage: build
   script:
     - meson $MESON_OPTIONS build
@@ -159,7 +159,7 @@ build:tests-debian-meson:
       - meson-test-list.txt
 
 build:tests-debian-minimal:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-minimal:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-minimal:$CI_COMMIT_REF_NAME
   stage: build
   script:
     - meson -Dtests=disabled -Dlibdrm_drivers="" build
@@ -169,7 +169,7 @@ build:tests-debian-minimal:
       - build
 
 build:tests-debian-meson-armhf:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-armhf:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-armhf:$CI_COMMIT_REF_NAME
   stage: build
   script:
     - export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/
@@ -180,7 +180,7 @@ build:tests-debian-meson-armhf:
       - build
 
 build:tests-debian-meson-arm64:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:$CI_COMMIT_REF_NAME
   stage: build
   script:
     - export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/
@@ -191,7 +191,7 @@ build:tests-debian-meson-arm64:
       - build
 
 build:tests-debian-meson-mips:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-mips:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-mips:$CI_COMMIT_REF_NAME
   stage: build
   script:
     - export PKG_CONFIG_PATH=/usr/lib/mips-linux-gnu/pkgconfig/
@@ -202,7 +202,7 @@ build:tests-debian-meson-mips:
       - build
 
 build:tests-debian-autotools:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian:$CI_COMMIT_REF_NAME
   stage: build
   script:
     - ./autogen.sh --enable-{chamelium,audio,intel,amdgpu,nouveau,tests,runner}
@@ -229,14 +229,14 @@ test:ninja-test-clang:
   script: ninja -C build test
 
 test:ninja-test-minimal:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-minimal:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-minimal:$CI_COMMIT_REF_NAME
   dependencies:
     - build:tests-debian-minimal
   stage: test
   script: ninja -C build test
 
 test:ninja-test-arm64:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:$CI_COMMIT_REF_NAME
   dependencies:
     - build:tests-debian-meson-arm64
   stage: test
@@ -250,7 +250,7 @@ test:ninja-test-arm64:
     when: on_failure
 
 test:ninja-test-armhf:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-armhf:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-armhf:$CI_COMMIT_REF_NAME
   dependencies:
     - build:tests-debian-meson-armhf
   stage: test
@@ -264,7 +264,7 @@ test:ninja-test-armhf:
     when: on_failure
 
 test:ninja-test-mips:
-  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-mips:latest
+  image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-mips:$CI_COMMIT_REF_NAME
   dependencies:
     - build:tests-debian-meson-mips
   stage: test
-- 
2.23.0



More information about the igt-dev mailing list