diff options
author | Ian Baum <ibaum@gitlab.com> | 2018-09-20 09:37:21 -0500 |
---|---|---|
committer | Ian Baum <ibaum@gitlab.com> | 2018-10-23 10:05:57 -0500 |
commit | 58690a63fa49eac24bfd5efd276ee813daca4248 (patch) | |
tree | 979cbcb362ad0b868d165db600a2c45169df9284 /.gitlab-ci.yml | |
parent | def8e8dba687009ee87ac98f6dccf005e97f9960 (diff) | |
download | gitlab-ce-58690a63fa49eac24bfd5efd276ee813daca4248.tar.gz |
Add review app to gitlab-ce
* Uses the same supporting code as used in EE
* Includes automated cleanup
* Install external-dns helm chart to review apps cluster if it isn't
already
* Adds variables REVIEW_APPS_AWS_SECRET_KEY and
REVIEW_APPS_AWS_ACCESS_key
* review-apps-ce uses a different cipher
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a16938eb2ab..51584778cee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -139,7 +139,7 @@ stages: - export SCRIPT_NAME="${SCRIPT_NAME:-$CI_JOB_NAME}" - apk add --update openssl - wget $CI_PROJECT_URL/raw/$CI_COMMIT_SHA/scripts/$SCRIPT_NAME - - chmod 755 $SCRIPT_NAME + - chmod 755 $(basename $SCRIPT_NAME) .rake-exec: &rake-exec <<: *dedicated-no-docs-no-db-pull-cache-job @@ -930,13 +930,13 @@ no_ee_check: only: - //@gitlab-org/gitlab-ce -# GitLab CE Review apps +# GitLab Review apps review: - <<: *dedicated-no-docs-pull-cache-job image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base stage: test allow_failure: true - before_script: [] + before_script: + - gem install gitlab --no-document variables: GIT_DEPTH: "1" HOST_SUFFIX: "$CI_ENVIRONMENT_SLUG" @@ -953,6 +953,7 @@ review: - ensure_namespace - install_tiller - create_secret + - install_external_dns - deploy environment: name: review/$CI_COMMIT_REF_NAME @@ -961,6 +962,7 @@ review: only: refs: - branches@gitlab-org/gitlab-ce + - branches@gitlab-org/gitlab-ee kubernetes: active except: refs: @@ -970,13 +972,14 @@ review: stop_review: <<: *single-script-job image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base - stage: post-cleanup + stage: test allow_failure: true cache: {} dependencies: [] - before_script: [] + variables: + SCRIPT_NAME: "review_apps/review-apps.sh" script: - - source ./scripts/review_apps/review-apps.sh + - source $(basename "${SCRIPT_NAME}") - delete - cleanup when: manual @@ -985,6 +988,7 @@ stop_review: action: stop only: refs: + - branches@gitlab-org/gitlab-ce - branches@gitlab-org/gitlab-ee kubernetes: active except: @@ -994,7 +998,7 @@ stop_review: automated_review_cleanup: <<: *dedicated-no-docs-pull-cache-job image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base - stage: build + stage: post-cleanup allow_failure: true cache: {} dependencies: [] @@ -1006,6 +1010,7 @@ automated_review_cleanup: - ruby -rrubygems scripts/review_apps/automated_cleanup.rb only: refs: + - schedules@gitlab-org/gitlab-ce - schedules@gitlab-org/gitlab-ee except: - master |