debian-mirror-gitlab/.gitlab/ci/review.gitlab-ci.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

2020-05-24 23:13:21 +05:30
review-cleanup:
2019-12-21 20:55:43 +05:30
extends:
- .default-retry
2020-03-13 15:44:24 +05:30
- .review:rules:review-cleanup
2021-10-27 15:23:28 +05:30
image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-helm3-kubectl1.14
2019-12-21 20:55:43 +05:30
stage: prepare
environment:
name: review/auto-cleanup
action: stop
before_script:
- source scripts/utils.sh
2020-05-24 23:13:21 +05:30
- source scripts/review_apps/gcp_cleanup.sh
2019-12-21 20:55:43 +05:30
- install_gitlab_gem
2020-05-24 23:13:21 +05:30
- setup_gcp_dependencies
2019-12-21 20:55:43 +05:30
script:
- ruby -rrubygems scripts/review_apps/automated_cleanup.rb
2020-04-22 19:07:51 +05:30
- gcp_cleanup
2021-11-18 22:05:49 +05:30
start-review-app-pipeline:
2020-07-28 23:09:34 +05:30
extends:
2021-11-18 22:05:49 +05:30
- .review:rules:review-app-pipeline
stage: review
2020-07-28 23:09:34 +05:30
needs:
2021-11-18 22:05:49 +05:30
- job: build-assets-image
2020-07-28 23:09:34 +05:30
artifacts: false
2021-11-18 22:05:49 +05:30
- job: build-qa-image
artifacts: false
# These variables are set in the pipeline schedules.
# They need to be explicitly passed on to the child pipeline.
# https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html#pass-cicd-variables-to-a-downstream-pipeline-by-using-the-variables-keyword
2021-10-27 15:23:28 +05:30
variables:
2021-11-18 22:05:49 +05:30
FREQUENCY: $FREQUENCY
DAST_RUN: $DAST_RUN
trigger:
include:
- local: .gitlab/ci/review-apps/main.gitlab-ci.yml
strategy: depend
2021-09-04 01:27:46 +05:30
2019-07-31 22:56:46 +05:30
danger-review:
2019-12-04 20:38:33 +05:30
extends:
- .default-retry
2021-04-17 20:07:23 +05:30
- .danger-review-cache
2020-03-13 15:44:24 +05:30
- .review:rules:danger
2019-07-31 22:56:46 +05:30
stage: test
2020-04-08 14:13:33 +05:30
needs: []
2021-04-17 20:07:23 +05:30
before_script:
2021-06-08 01:23:25 +05:30
- source scripts/utils.sh
- bundle_install_script "--with danger"
2021-01-03 14:25:43 +05:30
- run_timed_command "retry yarn install --frozen-lockfile"
2021-04-17 20:07:23 +05:30
script:
2021-04-29 21:17:54 +05:30
- >
if [ -z "$DANGER_GITLAB_API_TOKEN" ]; then
2021-09-30 23:02:18 +05:30
run_timed_command danger_as_local
2021-04-29 21:17:54 +05:30
else
run_timed_command "bundle exec danger --fail-on-errors=true --verbose"
fi
2021-09-30 23:02:18 +05:30
danger-review-local:
extends:
- danger-review
- .review:rules:danger-local
script:
- run_timed_command danger_as_local