Commit b5aeaad2 authored by John Northrup's avatar John Northrup

change domain for review apps and dast to about-src.gitlab.com

parent e847197c
Pipeline #36869103 passed with stages
in 30 minutes and 46 seconds
......@@ -197,12 +197,12 @@ review:
# We sometimes have absolute URLs, this replaces them with correct ones for the review app
- >
find public/ -regextype egrep -iregex ".*\.(html|js|css|json|xml|txt)" -exec \
sed --in-place "s#https\?://about.gitlab.com#https://$CI_COMMIT_REF_SLUG.about.gitlab.com#g" "{}" +;
sed --in-place "s#https\?://about.gitlab.com#https://$CI_COMMIT_REF_SLUG.about-src.gitlab.com#g" "{}" +;
- rsync --ignore-times --checksum --delete -avz public ~/pages/$CI_COMMIT_REF_SLUG
- rm -rf ./public/
environment:
name: review/$CI_COMMIT_REF_SLUG
url: https://$CI_COMMIT_REF_SLUG.about.gitlab.com
url: https://$CI_COMMIT_REF_SLUG.about-src.gitlab.com
on_stop: review_stop
only:
- branches@gitlab-com/www-gitlab-com
......@@ -268,7 +268,7 @@ dast:
services: []
variables:
DOCKER_DRIVER: overlay2
DAST_WEB_SITE: https://$CI_COMMIT_REF_SLUG.about.gitlab.com
DAST_WEB_SITE: https://$CI_COMMIT_REF_SLUG.about-src.gitlab.com
script:
- if [ -z $DAST_WEB_SITE ]; then echo "Please configure DAST_WEB_SITE env variable" && exit 1; fi
- mkdir /zap/wrk/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment