Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2022-11-23 00:23:32 +0300
committerSarah German <sgerman@gitlab.com>2022-11-23 00:23:32 +0300
commit6f196ae46a49c71f5f03836aed90155ed4ec2b22 (patch)
treeff4670d73c97ad031e0350f2285126a66d302523
parentbb9a1f49c41e1e53f7e77e86b48693c3ef9b7f8e (diff)
Check out the specified branch when testing single images
-rw-r--r--.gitlab/ci/docker-images.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab/ci/docker-images.gitlab-ci.yml b/.gitlab/ci/docker-images.gitlab-ci.yml
index c163b78c..a3c78ada 100644
--- a/.gitlab/ci/docker-images.gitlab-ci.yml
+++ b/.gitlab/ci/docker-images.gitlab-ci.yml
@@ -260,6 +260,9 @@ test:image:docs-single:
changes:
- $DOCKERFILE
script:
+ - apk add --no-cache -U git
+ - git fetch -all
+ - git checkout -b $GITLAB_VERSION origin/$GITLAB_VERSION
- docker build
--build-arg NANOC_ENV=${NANOC_ENV}
--build-arg VER=${GITLAB_VERSION}
@@ -314,7 +317,9 @@ test:image:docs-single-lunrjs:
changes:
- $DOCKERFILE
script:
- - apk add --no-cache -U make bash
+ - apk add --no-cache -U make bash git
+ - git fetch -all
+ - git checkout -b $GITLAB_VERSION origin/$GITLAB_VERSION
- docker build
--build-arg NANOC_ENV=${NANOC_ENV}
--build-arg VER=${GITLAB_VERSION}