Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zwordi
funkwhale
Commits
690bc47f
Verified
Commit
690bc47f
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
See #327: review app for the front \o/
parent
2e3a2cd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+42
-0
42 additions, 0 deletions
.gitlab-ci.yml
front/config/prod.env.js
+3
-1
3 additions, 1 deletion
front/config/prod.env.js
front/src/store/instance.js
+1
-1
1 addition, 1 deletion
front/src/store/instance.js
with
46 additions
and
2 deletions
.gitlab-ci.yml
+
42
−
0
View file @
690bc47f
...
...
@@ -7,11 +7,53 @@ variables:
stages
:
-
review
-
lint
-
test
-
build
-
deploy
review
:
stage
:
review
image
:
node:9
when
:
manual
allow_failure
:
true
before_script
:
-
cd front
script
:
-
yarn install
# 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/$CI_BUILD_REF_SLUG
-
cp -r dist/* /static/$CI_BUILD_REF_SLUG
cache
:
key
:
"
$CI_PROJECT_ID__front_dependencies"
paths
:
-
front/node_modules
-
front/yarn.lock
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
http://$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_review
only
:
-
branches@funkwhale/funkwhale
tags
:
-
funkwhale-review
stop_review
:
stage
:
review
script
:
-
rm -rf /static/$CI_BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
environment
:
name
:
review/$CI_BUILD_REF_NAME
action
:
stop
tags
:
-
funkwhale-review
black
:
image
:
python:3.6
stage
:
lint
...
...
This diff is collapsed.
Click to expand it.
front/config/prod.env.js
+
3
−
1
View file @
690bc47f
let
url
=
process
.
env
.
INSTANCE_URL
||
'
/
'
module
.
exports
=
{
NODE_ENV
:
'
"production"
'
NODE_ENV
:
'
"production"
'
,
INSTANCE_URL
:
`"
${
url
}
"`
}
This diff is collapsed.
Click to expand it.
front/src/store/instance.js
+
1
−
1
View file @
690bc47f
...
...
@@ -6,7 +6,7 @@ export default {
namespaced
:
true
,
state
:
{
maxEvents
:
200
,
instanceUrl
:
'
/
'
,
instanceUrl
:
process
.
env
.
INSTANCE_URL
,
events
:
[],
settings
:
{
instance
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment