From 92cb58f8291893e2df93c79d7f95b9edaeb54afc Mon Sep 17 00:00:00 2001
From: Bo-Chun Louis Chen <louistw@uab.edu>
Date: Wed, 31 May 2023 14:57:45 -0500
Subject: [PATCH] Update default image to CI_REGISTRY_IMAGE

---
 .gitlab-ci.yml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7672ea3d..42859c69 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,5 @@
 default:
-  image: docker:20.10.17
+  image: $CI_REGISTRY_IMAGE:latest
 
 variables:
   CAMPUS_IP: 138.26.48.47
@@ -40,6 +40,7 @@ workflow:
     - if: $CI_PIPELINE_SOURCE == 'schedule'
 
 build_docker_image:
+  image: docker:20.10.17
   stage: pre-build
   services:
     - docker:20.10.16-dind
@@ -68,7 +69,6 @@ build_docker_image:
       allow_failure: true
 
 build_image:
-  image: $CI_REGISTRY_IMAGE:latest
   stage: build
   environment:
     name: knightly
@@ -139,7 +139,6 @@ build_image:
       dotenv: image.env
 
 test:
-  image: $CI_REGISTRY_IMAGE:latest
   stage: test
   environment:
     name: knightly
@@ -193,7 +192,6 @@ test:
       dotenv: instance.env
 
 deploy_review:
-  image: $CI_REGISTRY_IMAGE:latest
   stage: deploy
   script:
     - echo "Deploy Review App"
@@ -208,7 +206,6 @@ deploy_review:
     - if: $CI_MERGE_REQUEST_ID
 
 stop_review:
-  image: $CI_REGISTRY_IMAGE:latest
   stage: deploy
   script:
     - openstack server delete $NEW_INSTANCE_ID
@@ -224,7 +221,6 @@ stop_review:
       when: manual
 
 deploy_knightly:
-  image: $CI_REGISTRY_IMAGE:latest
   stage: deploy
   environment:
     name: knightly
-- 
GitLab