diff options
author | Evan Read <eread@gitlab.com> | 2022-06-01 04:12:23 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-06-02 02:02:18 +0300 |
commit | 1fefeac1003595ade19e7011197c49c9fc372d14 (patch) | |
tree | 0f2ee9fdc2e3122d01232014b32804b893f385cb /.gitlab-ci.yml | |
parent | 2ae651bfe31d4b9c366528fc93b9963c56bf270c (diff) |
Test single.Dockerfile changeseread/test-single_dockerfile-changes
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ef79bb8..573c2c68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -771,6 +771,32 @@ image:docs-single: - if: '$CI_COMMIT_BRANCH =~ /^\d{1,2}\.\d{1,2}$/' # +# Test the GitLab docs single version Docker image if changes made to its Dockerfile +# +test:image:docs-single: + extends: + - .docker_prepare + stage: test + variables: + DOCKERFILE: dockerfiles/single.Dockerfile + MAJOR_VERSION_GITLAB: '15' + MINOR_VERSION_GITLAB: '0' + MAJOR_VERSION_CHARTS: '6' + MINOR_VERSION_CHARTS: '0' + needs: [] + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + changes: + - $DOCKERFILE + script: + # Update template with version numbers + - sed -i "s/X\.Y/${MAJOR_VERSION_GITLAB}\.${MINOR_VERSION_GITLAB}/" $DOCKERFILE + - sed -i "s/X-Y/${MAJOR_VERSION_GITLAB}-${MINOR_VERSION_GITLAB}/" $DOCKERFILE + - sed -i "s/W-Z/${MAJOR_VERSION_CHARTS}-${MINOR_VERSION_CHARTS}/" $DOCKERFILE + # Build the image + - docker build --file $DOCKERFILE . + +# # Build master containing the online archives and latest docs (on schedules) # image:docs-latest: |