summaryrefslogtreecommitdiff
path: root/.gitlab/ci/build-images.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/ci/build-images.gitlab-ci.yml')
-rw-r--r--.gitlab/ci/build-images.gitlab-ci.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.gitlab/ci/build-images.gitlab-ci.yml b/.gitlab/ci/build-images.gitlab-ci.yml
index 05748cff266..4ee15ccb311 100644
--- a/.gitlab/ci/build-images.gitlab-ci.yml
+++ b/.gitlab/ci/build-images.gitlab-ci.yml
@@ -27,6 +27,34 @@ build-qa-image as-if-foss:
extends:
- build-qa-image
- .as-if-foss
+ - .build-images:rules:build-qa-image-as-if-foss
+
+# Prepares an image with GDK configured based on code in master. This saves some time in MRs because some installation
+# and complilation will have already been performed.
+build-qa-on-gdk-master-image:
+ extends:
+ - .base-image-build-buildx
+ - .build-images:rules:build-qa-on-gdk-master-image
+ tags:
+ - e2e
+ stage: build-images
+ needs: []
+ variables:
+ QA_GDK_IMAGE: "${CI_REGISTRY}/${CI_PROJECT_PATH}/gitlab-qa-gdk"
+ before_script:
+ - !reference [.use-buildx, before_script]
+ - sysctl -n -w fs.inotify.max_user_watches=524288
+ script:
+ - |
+ docker buildx build \
+ --cache-to=type=inline \
+ --cache-from ${QA_GDK_IMAGE}:master \
+ --platform=${ARCH:-amd64} \
+ --add-host gdk.test:127.0.0.1 \
+ --tag ${QA_GDK_IMAGE}:master \
+ --file="qa/gdk/Dockerfile" \
+ --push \
+ ${CI_PROJECT_DIR}
build-assets-image:
extends: