diff options
author | Sarah German <sgerman@gitlab.com> | 2022-11-23 00:23:32 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-11-23 00:23:32 +0300 |
commit | 6f196ae46a49c71f5f03836aed90155ed4ec2b22 (patch) | |
tree | ff4670d73c97ad031e0350f2285126a66d302523 | |
parent | bb9a1f49c41e1e53f7e77e86b48693c3ef9b7f8e (diff) |
Check out the specified branch when testing single images
-rw-r--r-- | .gitlab/ci/docker-images.gitlab-ci.yml | 7 |
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} |