Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ButterflyOfFire
funkwhale
Commits
ed869d90
Verified
Commit
ed869d90
authored
Jul 04, 2018
by
Eliot Berriot
Browse files
Better urls for review apps
parent
8907de0d
Pipeline
#1466
passed with stages
in 4 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ed869d90
...
...
@@ -28,8 +28,8 @@ review_front:
# this is to ensure we don't have any errors in the output,
# cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169
-
INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
-
mkdir -p /static/front/$CI_BUILD_REF_SLUG
-
cp -r dist/* /static/front/$CI_BUILD_REF_SLUG
-
mkdir -p /static/front/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
-
cp -r dist/* /static/front/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
cache
:
key
:
"
$CI_PROJECT_ID__front_dependencies"
paths
:
...
...
@@ -37,7 +37,7 @@ review_front:
-
front/yarn.lock
environment
:
name
:
review/front-$CI_BUILD_REF_NAME
url
:
http://front-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
url
:
http://front-$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_front_review
only
:
-
branches
...
...
@@ -47,7 +47,7 @@ review_front:
stop_front_review
:
stage
:
review
script
:
-
rm -rf /static/front/$CI_BUILD_REF_SLUG/
-
rm -rf /static/front/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
...
...
@@ -78,11 +78,11 @@ review_docs:
-
"
$PIP_CACHE_DIR"
script
:
-
./build_docs.sh
-
mkdir -p /static/docs/$CI_BUILD_REF_SLUG
-
cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_BUILD_REF_SLUG
-
mkdir -p /static/docs/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
-
cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
environment
:
name
:
review/docs-$CI_BUILD_REF_NAME
url
:
http://docs-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
url
:
http://docs-$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_docs_review
only
:
-
branches
...
...
@@ -92,7 +92,7 @@ review_docs:
stop_docs_review
:
stage
:
review
script
:
-
rm -rf /static/docs/$CI_BUILD_REF_SLUG/
-
rm -rf /static/docs/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment