]> xenbits.xensource.com Git - xen.git/commitdiff
CI: Define XEN_REGISTRY variable
authorAnthony PERARD <anthony.perard@vates.tech>
Tue, 19 Nov 2024 10:15:27 +0000 (10:15 +0000)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 19 Nov 2024 21:45:58 +0000 (13:45 -0800)
This allow to change the registry used for container in a single
place, and could be controlled via other mean.

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
.gitlab-ci.yml
automation/gitlab-ci/build.yaml
automation/gitlab-ci/test.yaml

index ef4484e09ab455dc2b49e4a018595dc14f331cb6..941e5822e8f69e948c7b8f6645898085765cb50a 100644 (file)
@@ -1,3 +1,6 @@
+variables:
+  XEN_REGISTRY: registry.gitlab.com/xen-project/xen
+
 workflow:
   rules:
     - if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
index ce39b0ee21bee7a5da32e4950156b6f71d355ff4..1ca676422598bd31134d9ac69599aef48a65cb17 100644 (file)
@@ -1,6 +1,6 @@
 .build-tmpl: &build
   stage: build
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  image: ${XEN_REGISTRY}/${CONTAINER}
   script:
     - ./automation/scripts/build 2>&1 | tee build.log
   artifacts:
 
 .yocto-test:
   stage: build
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  image: ${XEN_REGISTRY}/${CONTAINER}
   script:
     - ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD} ${YOCTO_OUTPUT}
   variables:
index ab5c8be0cdec1da423878d9950a4c5f69d76dafb..1822e3ea5fd7da4519af080b20e9ddc167e3b39d 100644 (file)
@@ -1,6 +1,6 @@
 .test-jobs-common:
   stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  image: ${XEN_REGISTRY}/${CONTAINER}
 
 .arm64-test-needs: &arm64-test-needs
   - alpine-3.18-arm64-rootfs-export